資源簡介
無任何限制。。。。
內容清單:
1 ocx 控件
2 安裝文檔
3 示例代碼
....

代碼片段和文件信息
using?System;
using?System.IO;
using?System.Collections;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Web;
using?System.Web.SessionState;
using?System.Web.UI;
using?System.Web.UI.WebControls;
using?System.Web.UI.HtmlControls;
namespace?v30CSharpdemoSQL
{
public?partial?class?mainform?:?System.Web.UI.Page
{
private?System.Data.SqlClient.SqlConnection?conn;
protected?void?Page_Load(object?sender?System.EventArgs?e)
{
conn?=?(System.Data.SqlClient.SqlConnection)Session[“dbConn“];
}
#region?Web?Form?Designer?generated?code
override?protected?void?OnInit(EventArgs?e)
{
//
//?CODEGEN:該調用是?ASP.NET?Web?窗體設計器所必需的。
//
InitializeComponent();
base.OnInit(e);
}
///?
///?設計器支持所需的方法?-?不要使用代碼編輯器修改
///?此方法的內容。
///?
private?void?InitializeComponent()
{????
}
#endregion
public?string?getDocListFromDatabase()
{
string?sRet?=?@““+
@“id “+
@“Filename “+
@“size “+
@“Operation “+
@“ “;
string?strcmd?=?“select?*?from?MyUploadTable?ORDER?BY?id“;
System.Data.SqlClient.SqlDataReader??objReader?=?null;
try
{
System.Data.SqlClient.SqlCommand??objCommand?=?new?System.Data.SqlClient.SqlCommand?(strcmdconn);
conn.Open();
objReader?=?objCommand.ExecuteReader();
while?(objReader.Read())
{
sRet?+=?““+objReader[“id“]+“ “+objReader[“filename“].ToString().Trim()+“ “?+
objReader[“filesize“]+@“?Bytes “edit.aspx?docid=“+objReader[“id“]+@“““?target=_blank>Edit “;
}
}
finally
{
if(objReader?!=?null)objReader.Close();?
conn.Close();
}
return?sRet;
}
public?string?getDocListFromDir()
{
string?sRet?=?@“ “+
@“Filename “+
@“size “+
@“Operation “+
@“ “;
string?uploadpath?=?Server.MapPath(Session[“uploadpath“].ToString());
DirectoryInfo?di?=?new?DirectoryInfo(uploadpath);
FileInfo[]?fis?=?di.GetFiles();
foreach?(FileInfo?fiTemp?in?fis)
{
sRet?+=?““?+?fiTemp.Name?+?“ “?+fiTemp.Length?+
@“?Bytes fiTemp.Name+?@“““?target=_blank>Edit “;
}
return?sRet;
}
public?string?getHTMLListFromDir()
{
string?sRet?=?@“ “+
@“Filename “+
@“size “+
@“Operation “+
@“ “;
string?htmlPath?=?Server.MapPath(Session[“htmlpath“].ToString());
DirectoryInfo?di?=?new?DirectoryInfo(htmlPath);
FileInfo[]?fis?=?di.GetFiles(“*.html“);
foreach?(FileInfo?fiTemp?in?fis)
{
sRet?+=?““?+?fiTemp.Name?+
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1568??2007-03-21?16:58??office\default.aspx
?????文件???????3211??2007-03-21?16:58??office\default.aspx.cs
?????文件???????5443??2007-03-21?16:58??office\default.aspx.resx
?????文件???????9244??2007-03-21?16:58??office\edit.aspx
?????文件???????3515??2007-03-21?16:58??office\edit.aspx.cs
?????文件???????1733??2007-03-21?16:58??office\edit.aspx.resx
?????文件???????2472??2007-03-21?16:58??office\edit.html
?????文件??????12021??2007-04-05?15:10??office\ntkoocx.js
?????文件?????310052??2007-03-21?16:58??office\OfficeControl.cab
?????文件?????????96??2007-03-21?16:58??office\readattach.aspx
?????文件???????2420??2007-03-21?16:58??office\readattach.aspx.cs
?????文件???????1733??2007-03-21?16:58??office\readattach.aspx.resx
?????文件?????????90??2007-03-21?16:58??office\readdoc.aspx
?????文件???????2751??2007-03-21?16:58??office\readdoc.aspx.cs
?????文件???????5317??2007-03-21?16:58??office\readdoc.aspx.resx
?????文件?????????96??2007-03-21?16:58??office\uploaddisk.aspx
?????文件???????1798??2007-03-21?16:58??office\uploaddisk.aspx.cs
?????文件???????1733??2007-03-21?16:58??office\uploaddisk.aspx.resx
?????文件?????????96??2007-03-21?16:58??office\uploadedit.aspx
?????文件???????4273??2007-03-21?16:58??office\uploadedit.aspx.cs
?????文件???????1733??2007-03-21?16:58??office\uploadedit.aspx.resx
?????文件?????????98??2007-03-21?16:58??office\uploadhtmls.aspx
?????文件???????1713??2007-03-21?16:58??office\uploadhtmls.aspx.cs
?????文件???????1733??2007-03-21?16:58??office\uploadhtmls.aspx.resx
?????文件??????34304??2007-04-09?08:56??office\安裝說明.doc
?????文件??????23552??2007-04-09?08:56??office\示例說明.doc
?????目錄??????????0??2008-10-04?13:48??office
-----------?---------??----------?-----??----
???????????????432795????????????????????27
............此處省略0個文件信息
- 上一篇:同步中的相位估計方法
- 下一篇:LabVIEW2017高級信號處理工具包及其注冊機
評論
共有 條評論
相關資源
-
最新版TTF16.OCX Formula One v. 6.1.6.2 控件
-
[免費]強大的OFFICE經驗(Word Excel)
-
可拖拽的甘特圖控件(完整)
-
QRMaker.ocx控件
-
MFC控件動態拖動
-
js實現的日歷控件(經典好用)
-
上傳大文件并顯示進度條控件實例
-
組態王6.53樹形控件實例
-
用FileSystemWatcher控件實現文件同步更新
-
畢業設計:網絡圍棋對弈
-
自定義的TabCtrl控件實現
-
RadioButton控件
-
“猜數字”游戲 算法破解
-
OpenGL-3D坦克模擬
-
在delphi7下進行autocad二次開發的一個簡
-
powerdatagrid控件 源碼
-
采用WINSOCK2 編寫的TCP/UDP通信程序
-
大陸天堂2原代碼
-
PB做的俄羅斯方塊
-
animatedgif
-
典當綜合業務管理系統(完整版)
-
圖像處理作業C 源代碼
-
聯機版井字棋源碼
-
用IdFTPServer寫的一個FTPServer程序
-
視頻處理控件TVideoGrabber.v6.7.5.For.Del
-
從EXCEL中取數據在Teechart7顯示應用示例
-
我寫的一個簡單的屬性編輯器控件
-
校園網絡信息發布系統
-
vc漂亮的tab控件
-
UnityWebPla
yer及UnityWebPlayerFull