Category - Razor Pages
Results 1 - 5 of 34
05 Mar 2021 05 Mar 2021 0 Comments  221 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement RadioButtons (RadioButtonList) in ASP.Net Core Razor Pages.

Group of multiple RadioButtons (RqadioButtonList) will be populated from SQL Server Database by looping through the Model.

The RadioButtons are grouped by specifying common name for all RadioButtons in ASP.Net Core Razor Pages.
19 Feb 2021 19 Feb 2021 0 Comments  486 Views
Here Mudassar Ahmed Khan has explained with an example, how to use jQuery Unobtrusive AJAX helpers in ASP.Net Core.

The POST method of the Razor Page will be called using jQuery Unobtrusive AJAX library in ASP.Net Core.
16 Feb 2021 16 Feb 2021 0 Comments  640 Views
Here Mudassar Ahmed Khan has explained an example, how to use the Select List asp-items Tag Helper in ASP.Net Core Razor Pages.

The the Select List asp-items Tag Helper is used for populating DropDownList in ASP.Net Core Razor Pages.
16 Feb 2021 16 Feb 2021 0 Comments  488 Views
Here Mudassar Ahmed Khan has explained with an example, how to populate Select List from Database in ASP.Net Core Razor Pages.

The records from the Database will be populated into Model class objects and then the Model will be used to populate the DropDownList using the new ASP.Net Tag Helpers in ASP.Net Core Razor Pages.
29 Jan 2021 29 Jan 2021 0 Comments  839 Views
Here Mudassar Ahmed Khan has explained with an example, how to use AntiForgeryToken with jQuery Unobtrusive AJAX in ASP.Net Core Razor Pages.

The jQuery Unobtrusive AJAX library does not support adding headers to the request and hence it is not possible to send AntiForgeryToken.

Thus, the possible way is to make use of normal jQuery AJAX function and then send the AntiForgeryToken by adding it to the request headers.
Results 1 - 5 of 34