I describe two approaches, but I think the second is better. This can be done in two ways: via what is known as a named page handler, or by using a normal razor page. TL DR – summaryĪSP.NET Core’s Razor Pages normally deliver HTML pages, but there is still the need to deliver data for AJAX requests. It turns out there are two ways to implement the C# code that handles HTTP requests that return json or other data. In this article I describe how to handle AJAX requests. I really like Razor Pages, but I needed to work out how to do a few things. ![]() ![]() ASP.NET Core 2.0 introduced a new way to build a web site, called Razor Pages.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |