6
Reply

upload excel and store into database using mvc 5

Khushboo Kumari

Khushboo Kumari

Dec 25 2017 5:45 AM
185
can you some one please direct me how to resolve the issue.
i am building an application that upload the excel file and read the data from excel and store the value into database in mvc 5 c# .
but i am getting error on 
 
var adapter = new OleDbDataAdapter("SELECT * FROM [Sheet1$]", connectionString);
var ds = new DataSet();
adapter.Fill(ds, "ExcelTable");
 
getting error on adapter.Fill(ds,"ExcelTable");
 
 
 

Answers (6)