Category - Razor Pages
Results 6 - 10 of 34
29 Jan 2021 29 Jan 2021 0 Comments  893 Views
Here Mudassar Ahmed Khan has explained with an example, how to use jQuery Unobtrusive AJAX in ASP.Net Core Razor Pages.

The POST method of the Razor Page will be called using jQuery AJAX Unobtrusive library and JSON from HTML in ASP.Net Core.
22 Jan 2021 22 Jan 2021 0 Comments  1347 Views
Here Mudassar Ahmed Khan has explained with an example, how to use Hidden Fields with Razor Pages in ASP.Net Core.

This article will explain how to create Hidden Fields using Model class, set its value and then retrieve data from Razor Page inside POST Handler method in ASP.Net Core.
19 Jan 2021 19 Jan 2021 0 Comments  1431 Views
Here Mudassar Ahmed Khan has provided a small tutorial on how to create a Sample Web Application program in ASP.Net Core.

This article makes use of Visual Studio for developing the ASP.Net Core Razor Pages Sample Web Application program.
19 Dec 2020 19 Dec 2020 0 Comments  2227 Views
Here Mudassar Ahmed Khan has explained with an example, how to refresh a page after submit (post) in ASP.Net Core Razor Pages.

If the Browser is refreshed using F5 button after the Form is submitted (in other words after PostBack operation), the submitted data is resubmitted to Server.

Thus to prevent such behavior, the Page is redirect to same page after Form submit (post).
18 Dec 2020 18 Dec 2020 0 Comments  1405 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.
Results 6 - 10 of 34