Archives
-
Prevent Cross-Site Request Forgery In ASP.NET Core
If you worked with ASP.NET MVC applications before, you are probably aware of Cross-site request forgery (CSRF / XSRF) attacks. You might have also used anti-forgery token based approach to prevent them. ASP.NET Core uses a similar approach but there are a few differences that you should be aware of. To that end this article briefly discusses the CSRF attack and ASP.NET Core way to prevent them.
-
Five Things Worth Knowing About ASP.NET Core Tag Helpers
It is quite common for ASP.NET Core applications to rely on the tag helpers to render forms and form fields. So, a view typically contains many tag helpers as well as standard HTML markup. You can improve your development time experience with the tag helpers in variety of ways. This article discusses a few of them.
-
Four Ways of Handling Multiple Submit Buttons in ASP.NET Core
A few years ago I wrote similar article for ASP.NET MVC. This article is for ASP.NET Core and has minor changes. A common beginner question is - How to handle multiple submit buttons in ASP.NET Core? A few years ago I wrote similar article for ASP.NET MVC. This article is for ASP.NET Core and has minor changes.