Tech Tutorials Database
GeekArticles Microsoft Microsoft.NET
 

Use Ajax to perform CRUD operations in ASP.NET Core Razor Pages

 
Author: dotnetbips.com
Category: Microsoft.NET
Comments (0)

ASP.NET Core Razor Pages offer a simple page based programming model for the developers. A razor pages consists of a .cshtml files and associated page model class. The page model class can house actions to handle verbs. For example, a page model class can contain OnGet(), OnPost(), OnPut(), and OnDelete() actions to deal with GET, POST, PUT, and DELETE verbs respectively. This sounds straightforward as far as requests are initiated by a form. However, things are bit tricky while making Ajax calls to a razor page. To that end this article illustrates how to develop a razor page that performs CRUD operations using Ajax calls.

Read More...




Sponsored Links




Read Next: Get the Attention of a User with a Beep



 

 

Comments



Post Your Comment:

Your Name:*
e-mail ID:(required for notification)*
Image Verification:�
 
 Subscribe