Here Mudassar Khan has explained with an example, how to export WebGrid to Excel file in ASP.Net Core Razor Pages.
The WebGrid will be populated from database using Entity Framework and then the WebGrid will be sent as HTML string to the PageModel which will be exported to Excel file in ASP.Net Core Razor Pages.
↧