Search code examples
asp.net-mvcvalidationxval

Options for asp.net MVC Validation Framework


I'm thinking of two options right now for model-base validation for an ASP.net project I'm starting:

xVal (Steve Sanderson's project) and the Enterprise module that Stephen Walther uses on this page

I don't really know enough to talk about the preferences as I haven't used either of them yet. Any ideas?

Update Using LinqToSql for ORM right now, but am open to changes.


Solution

  • One difference I see in reviewing the two is that Stephen Walther's blog post describes a library which does only validation in the Web server, where as xVal works with jQuery validators to do in-browser validation, as well. This feature, incidentally, is almost completely automatic.