The goal of the IClientValidatable interface is to let you extend your server-side DataAnnotations with client-side functions in ASP.NET MVC 3. For instance, a Data Annotation that ensured that a ...
How to unit test view model validation, focusing on the controller when the model is bound to a controller action. Welcome to part 4 in the TDD for ASP.NET MVC series. This time, I'll cover how to ...
Take advantage of anti-forgery tokens in ASP.NET Core to protect users of your applications against cross site request forgery exploits. Cross-site request forgery (CSRF) is an attack that tricks an ...
You can take advantage of custom route constraints in ASP.NET Core to validate route values and avoid passing unwanted or unnecessary requests to action methods. Route constraints in ASP.NET Core are ...