Khushboo Kumari

Khushboo Kumari

  • NA
  • 112
  • 14.6k

upload excel and store into database using mvc 5

Dec 25 2017 5:45 AM
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)