摘要:
//从控件上传文件 public void fileUpload() { System.Web.HttpFileCollection files = Request.Files; for (int fileCount = 0; fileCount < files.Count; fileCount++) { System.Web.HttpPostedFile postedfile = files[fileCount]; string... 阅读全文
摘要:
/// /// 读取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( 阅读全文