xVal a good validation framework for ASP.NET MVC

Published on Jan 11, 2009

I found this project on CodePlex called xVal. It’s Steve Sanderson’s take on validation for the ASP.NET MVC framework, more to the point on how to use validation across tiers (validate on the server side, present errors to the client, etc.)

xVal is a validation framework for ASP.NET MVC applications. It makes it easy to link up your choice of server-side validation mechanism with your choice of client-side validation library, neatly fitting both into ASP.NET MVC architecture and conventions.

It’s extensible so you can use whatever validation framework you want in the server and client side.

  • Define your validation rules using attributes on model properties, e.g.,

It just released version 0.5 and you can find a quick tutorial on Steve’s blog.