摘要: //从控件上传文件 public void fileUpload() { System.Web.HttpFileCollection files = Request.Files; for (int fileCount = 0; fileCount < files.Count; fileCount++) { System.Web.HttpPostedFile postedfile = files[fileCount]; string... 阅读全文
posted @ 2014-04-08 16:25 lampon 阅读(185) 评论(0) 推荐(0) 编辑
摘要: /// /// 读取Excel文档 /// /// 文件名称 /// 返回一个数据集 public DataSet ExcelToDS(string Path) { string strConn = "Provider=Microsoft.Jet.OLEDB.4.0;" +"Data Source="+ Path +";"+"Extended Properties=Excel 8.0;"; OleDbConnection conn = new OleDbConnection(strConn); conn.Open( 阅读全文
posted @ 2014-04-08 11:43 lampon 阅读(218) 评论(0) 推荐(0) 编辑