Rabu, 04 Desember 2013

Action Result for MVC Export CSV and Zip (.NET)



In MVC the ActionResult is the core component of returning data. I have made three usual ActionResult that makes you fast returning data:
1. ActionResult_Zip – you can add many files and returns a Zip file with those files compressed
2. ActionResult_CSVDataTable : takes a DataTable as argument and returns a csv from this datatable
3. ActionResult_CSVObject : takes an IEnumerable(List, array) of objects of same type and returns the csv from the properties of the type and values of the IEnumerable objects.

Filled Under:

0 komentar:

Posting Komentar