Category - Razor Pages
Results 16 - 20 of 34
21 Nov 2020 21 Nov 2020 0 Comments  1018 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  1245 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  880 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  993 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  788 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.
Results 16 - 20 of 34