Upload Excel File and display in Grid in asp.net MVC

后端 未结 1 1263
后悔当初
后悔当初 2021-02-03 13:41

I need to export the Users List from excel to my asp.net mvc(C#) application.

The Excel should have an header like First Name Last Name Email,...

相关标签:
1条回答
  • 2021-02-03 14:26

    I think that it would be best, in this case, to use ADO.NET.

    A few articles on how to do this in order to read values from an Excel Worksheet:

    (1) Reading and Writing Excel Spreadsheets Using ADO.NET C# DbProviderFactory (David Hayden)

    (2) Import Excel File to DataSet (CodeProject)

    (3) Tips for reading Excel spreadsheets using ADO.NET (Lab49)

    (4) Reading Excel files from C# (Stack Overflow)

    I think that this should get you to where you need to go.

    -- Mike

    0 讨论(0)
提交回复
热议问题