Quantcast
Channel: ASPSnippets RSS Feed
Viewing all articles
Browse latest Browse all 4731

Convert List of Objects to CSV file using C# in ASP.Net MVC

$
0
0
Here Mudassar Ahmed Khan has explained with an example, how to convert List of Objects to CSV file using C# in ASP.Net MVC Razor. When the Export Button is clicked, the data from Database is fetched using Entity Framework as List of Objects. Then using a FOR Loop, the data is converted into a Comma Separated (Delimited) string which is later exported and downloaded as CSV file in ASP.Net MVC Razor.

Viewing all articles
Browse latest Browse all 4731

Trending Articles