Category - Core
Results 16 - 20 of 118
18 Dec 2020 18 Dec 2020 0 Comments  569 Views
Here Mudassar Ahmed Khan has explained with an example, how to use the asp-page-handler attribute in ASP.Net Core Razor Pages.

The asp-page-handler attribute is assigned to the Submit Button and is used to all the OnPost handler method in ASP.Net Core Razor Pages.
18 Dec 2020 18 Dec 2020 0 Comments  557 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.
18 Dec 2020 18 Dec 2020 0 Comments  675 Views
Here Mudassar Ahmed Khan has explained with an example, how to download files from Folder (Directory) on Server's Disk in View in ASP.Net Core Razor Pages.
18 Dec 2020 18 Dec 2020 0 Comments  502 Views
Here Mudassar Ahmed Khan has explained with an example, how to display List of files from Folder (Directory) on Server's Disk in View in ASP.Net Core Razor Pages.

The Files can also be downloaded from Folder (Directory) in ASP.Net Core Razor Pages.
15 Dec 2020 15 Dec 2020 0 Comments  607 Views
Here Mudassar Ahmed Khan has explained with an example, how to export to Excel file in ASP.Net Core Razor Pages.

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.
Results 16 - 20 of 118