Razor Pages AJAX

Posted by Joe Enos on January 09, 2021 · 1 min read

Razor Pages is a fantastic alternative to ASP.NET MVC. Here's one reason - CSRF protection is included by default. That's great news, but it means that you can't execute AJAX posts as easily. Fortunately, it's still not difficult to do a post. Here's how.

View code on GitHub