摘要:
private void FileUpload(System.Web.UI.WebControls.FileUpload FileUploadControl,string savePath) { try { if (FileUploadControl.HasFile) { string fileName = FileUploadControl.FileName; string fileExtendName = fileName.Substring(fileName.LastIndexOf('.')); //过滤文件后缀 if (fileExtendName.ToLower() 阅读全文
随笔档案-2013年10月
EXCEL导入导出自己整理的一些方法
2013-10-19 00:55 by sql_manage, 323 阅读, 收藏, 编辑
摘要:
//导入Excel代码protected DataTable ExcelHelper(string filePaht) { string sFilePath2003 = Server.MapPath("ExcelData/2003.xls"); //string sFilePath2007 = Server.MapPath("ExcelData/2007.xlsx"); // 支持Excel2003 和 Excel2007 的连接字符串 // "HDR=yes;"是说... 阅读全文