aspx页面,取得Excel某列不同类型的数据为空

红色部分需要加上,

string connectionString = string.Format("Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0};Jet OLEDB:Engine Type=35;Extended Properties='Excel 8.0;HDR=YES;IMEX=1'", excelFilename);

这样是错误的:

   string connectionString = string.Format("Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0};Jet OLEDB:Engine Type=35;Extended Properties=Excel 8.0;Persist Security Info=False", excelFilename);
原文地址:https://www.cnblogs.com/hongmaju/p/7590524.html