Is there any point to writing your own validation framework for MVC beta or do you expect one will be released soon?

There have been plenty of questions on MVC validation but so far the answer has been pretty much inconclusive.

For my needs in particular, I would like something that generates client validation and server validation from the same description and should allow both model based attributes as well as code based declarations for those using an ORM (e.g. LINQ TO SQL) exclusively.

I have seen some validation packs that have been whipped up to do this but they tend to introduce a lot of dependencies or are reasonably incomplete (e.g. no support for check boxes or no "higher-level" validation).

Do we begin writing our own validation framework or do we wait in hope that the team may actually release something now that they have the structure for validation in place and jQuery on board?

For those out there actually using MVC in the field now what are you using for validation?

Answers


Are you aware that validation semantics have been added in preview 5? This article from Scott Gu describes how to use it, and this one details the changes in the beta.

I have not personally used it, and it may not fit all your requirements, but I have no doubt it could be extended to behave like you want.


The best way as of the released MVC 1.0 is to use xVal. You may also need to look at this post on implementing Linq2SQL with xVal in case that hasn't been resolved/doesn't work.


Need Your Help

Secure static files with flask

python security static flask password-protection

I am building a flask application, and I want it to serve some static files only if the user is authenticated. It's a very low-traffic application (for internal use only). How would I go about this...

Generating Dynamic Table Content in C#

arrays table dynamic repeater

Hi i'm having a bit of a challenge to create the following:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.