string Filename = System.Web.Hosting.HostingEnvironment.MapPath("~//Admin//UploadFiles//" + path); string s = @"Data Source='" + Filename + "';Provider=Microsoft.ACE.OLEDB.12.0; Extended Properties=Excel 12.0;"; OleDbConnection con = new OleDbConnection(s); // connection string con.Open(); OleDbDataAdapter da = new OleDbDataAdapter("select * from [Sheet1$]", con);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)