Category - Razor Pages
Results 21 - 40 of 45
18 Dec 2020 18 Dec 2020 0 Comments  10038 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  10237 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  5322 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  7598 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.
21 Nov 2020 21 Nov 2020 0 Comments  8320 Views
Here Mudassar Ahmed Khan has explained with an example, how to do a Database Connection without using Entity Framework in ASP.Net Core Razor Pages.

This article will illustrate how to connect to Database using ADO.Net and fetch data from Database using SqlDataReader in ASP.Net Core Razor Pages.
21 Nov 2020 21 Nov 2020 0 Comments  4253 Views
Here Mudassar Ahmed Khan has explained with an example, how to use ADO.Net Database Connection in ASP.Net Core Razor Pages.

This article will illustrate how to connect to Database using ADO.Net and fetch data from Database using SqlDataReader in ASP.Net Core Razor Pages.
21 Nov 2020 21 Nov 2020 0 Comments  5740 Views
Here Mudassar Ahmed Khan has explained with an example, how to populate (bind) DropDownList using ADO.Net in ASP.Net Core Razor Pages.

The records from the Database will be fetched from Database Table using ADO.Net into Model class object and then the Model is used to populate the DropDownList using the new ASP.Net Tag Helpers in ASP.Net Core Razor Pages.
18 Nov 2020 18 Nov 2020 0 Comments  7951 Views
Here Mudassar Ahmed Khan has explained with an example, how to send AntiForgeryToken with AJAX requests in ASP.Net Core Razor Pages.

The AntiForgeryToken is used to prevent cross-site request forgery (CSRF) attacks and this article will illustrate how to configure and use the AntiForgeryToken during jQuery AJAX POST call in ASP.Net Core Razor Pages.
18 Nov 2020 18 Nov 2020 0 Comments  6090 Views
Here Mudassar Ahmed Khan has explained with an example, how to display Current Date and Time in Razor Page (cshtml) in ASP.Net Core Razor Pages.

The Current Date and Time will be determined inside the Handler method which will be later sent to the Razor Page for display using jQuery AJAX in ASP.Net Core Razor Pages.
18 Nov 2020 18 Nov 2020 0 Comments  9781 Views
Here Mudassar Ahmed Khan has explained with an example, how to use the OnPost handler method in ASP.Net Core Razor Pages.

The OnPost handler method is used for handling Form Submissions and the name of the OnPost handler method is specified on the Submit Button used to submit the Form using the asp-page-handler attribute in ASP.Net Core Razor Pages.
18 Nov 2020 18 Nov 2020 0 Comments  6129 Views
Here Mudassar Ahmed Khan has explained with an example, how to bind Model Properties in ASP.Net Core Razor Pages.

The value of the Name attribute of the Field e.g. a TextBox is used as the name of the Property and then the Property is decorated with BindProperty attribute which then binds the property to the Field in ASP.Net Core Razor Pages.
18 Nov 2020 18 Nov 2020 0 Comments  7100 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) data from Page Model to Razor Page (cshtml) in ASP.Net Core Razor Pages.

The data will be set into a public property inside the Page Model and then using Razor syntax the data will be fetched inside the Razor Page (cshtml) in ASP.Net Core Razor Pages.
17 Nov 2020 17 Nov 2020 0 Comments  4054 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform looping through Model Items in ASP.Net Core Razor Pages.

The Model data will be fetched using Entity Framework and then using a FOR EACH loop the Model items will be traversed and data will be displayed using HTML Table in ASP.Net Core Razor Pages.
17 Nov 2020 17 Nov 2020 0 Comments  4826 Views
Here Mudassar Ahmed Khan has explained with an example, how to use Entity Framework with existing Database in ASP.Net Core Razor Pages.

This article will explain how to configure Entity Framework and connect to the existing SQL Server database and retrieve the data in ASP.Net Core Razor Pages.
17 Nov 2020 17 Nov 2020 0 Comments  3962 Views
Here Mudassar Ahmed Khan has explained a simple tutorial with an example, how to use Entity Framework with Database First Approach in ASP.Net Core Razor Pages.

This article will explain how to configure Entity Framework and connect to SQL Server database and finally the fetched data is displayed in ASP.Net Core Razor Pages.
15 Oct 2020 15 Oct 2020 0 Comments  20471 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement Bootstrap DatePicker (Calendar) in ASP.Net Core Razor Pages.

This article will also illustrate how to get the selected Date of the Bootstrap DatePicker (Calendar) inside Controller on Button click in ASP.Net Core Razor Pages.

The Date format for the selected Date will be set to dd/MM/yyyy format.
22 Sep 2020 22 Sep 2020 0 Comments  949 Views
Here Mudassar Ahmed Khan has explained a small Tutorial using a small Sample Program example on how to build your first Website in ASP.Net Core 2.0 Razor Pages.

This article will help you understand, configure and create a very simple Website application in ASP.Net Core 2.0 Razor Pages.
22 Sep 2020 22 Sep 2020 0 Comments  1292 Views
Here Mudassar Ahmed Khan has explained a simple Tutorial for Beginners which uses a small Sample Program example to explain how to use Razor Pages in ASP.Net Core 2.0.

This article will help you understand, configure and create a very simple application in ASP.Net Core 2.0 Razor Pages.
22 Sep 2020 22 Sep 2020 0 Comments  849 Views
Here Mudassar Ahmed Khan has explained how to get started with ASP.Net Core 2.0 Razor pages using a small Sample Program to explain how to create applications with Razor Pages in ASP.Net Core 2.0.

This article will help you understand, configure and create a very simple application in ASP.Net Core 2.0 Razor Pages.
29 Aug 2020 29 Aug 2020 0 Comments  18212 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement jQuery AutoComplete in ASP.Net Core Razor Pages.

The jQuery AutoComplete TextBox data will be populated from SQL Server database using Entity Framework in ASP.Net Core Razor Pages.
Results 21 - 40 of 45