Author: cicciofdl | Posted on: 9/15/2010 11:53:27 AM | Views : 1088

I don't know why.... I can't understand
I import by fileupload one xls, I open this one and I would connect it to a gridview.
Everythings works fine but when I see the gridview I don't understand why some data is not available


 
HttpPostedFile xls = this.FileUpload1.PostedFile; string strConn = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + xls.FileName.ToString() + ";Extended Properties=Excel 8.0"; DataTable dt = new DataTable(); DataSet ds = new DataSet(); OleDbConnection oConn = new OleDbConnection(); oConn.ConnectionString = strConn; oConn.Open(); List<string> fogli = new List<string>(); //recupero i nomi dei fog ...

Go to the complete details ...