Ben Foster 7/6/2012

Automatic ModelState validation in ASP.NET MVC

Read Original

This technical article discusses automating ModelState validation in ASP.NET MVC to eliminate repetitive validation checks in controller actions. It explores creating a custom ActionFilterAttribute, addresses challenges like rebuilding complex view models after validation failure, and suggests embracing the Post-Redirect-Get (PRG) pattern as a solution.

Automatic ModelState validation in ASP.NET MVC

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week