Category - MVC
Results 26 - 30 of 663
18 Dec 2020 18 Dec 2020 0 Comments  542 Views
ASP.Net  MVC  Core
Here Mudassar Ahmed Khan has explained with an example, how to read files from wwwroot Directory in Controller in ASP.Net Core MVC.

The files will be read using the File class from the wwwroot Directory (Folder) and will also be downloaded in ASP.Net Core MVC.
12 Dec 2020 15 Dec 2020 0 Comments  712 Views
Here Mudassar Ahmed Khan has explained with an example, how to export to Excel file in ASP.Net Core MVC.

The data from the database is fetched using Entity Framework and then the data is exported and downloaded as Microsoft Excel file using ClosedXML Excel library which is a wrapper for OpenXml Excel library.
09 Dec 2020 09 Dec 2020 0 Comments  712 Views
Here Mudassar Ahmed Khan has explained with an example, how to use the FileResult return type in ASP.Net MVC Razor.

The FileResult return type is used to return a File from the Action method of Controller in ASP.Net MVC Razor.
09 Dec 2020 09 Dec 2020 0 Comments  594 Views
Here Mudassar Ahmed Khan has explained with an example, how to return an Excel File from Controller in ASP.Net MVC Razor using C#.

The Excel File will be generated from database using Entity Framework and then it will be returned from Action method of Controller with FileResult return type in ASP.Net MVC Razor.
09 Dec 2020 09 Dec 2020 0 Comments  556 Views
ASP.Net  MVC  Core
Here Mudassar Ahmed Khan has explained with an example, how to use the FileResult return type in ASP.Net Core MVC.

The FileResult return type is used to return a File from the Action method of Controller in ASP.Net Core MVC.
Results 26 - 30 of 663