资源简介
无任何限制。。。。
内容清单:
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
评论
共有 条评论