Could xVal be used in Non-MVC Webform Application ?

Jun 29, 2009 at 3:40 AM

It's really cool to have validation rule in one place capable of supporting both server-sdie & client-side web application.

From the xVal description, it currently supports ASP.NET MVC Web Application. Is xVal suitable for a Non-MVC Webform Application ?

If xVal is not the one fits Non-MVC Webform Application, does there anyone similar to xVal exist (I mean support both server-side & client-side validation) ?


Thanks !

Jul 1, 2009 at 10:13 PM

I have the same question.

Jul 2, 2009 at 10:18 AM

I suspect that it wouldn't take a lot to make a branch work with traditional webforms.

From memory I think the only MVC specific part is the HTML helper which outputs the xval javascript.

I'll have a look and see what I can come up with.



Jul 6, 2009 at 4:15 PM
Edited Jul 6, 2009 at 4:16 PM

"I have the same question."

Me too ...

Jul 8, 2009 at 9:01 AM

As Mark suggests, I think it should be possible to adapt xVal to work with ASP.NET WebForms. However to keep the xVal project focused, I don't want to try adding that support and would rather make the MVC experience as streamlined as possible.

Feel free to have a go yourself though!

Jul 9, 2009 at 1:15 PM

I'll give it a shot. Thanks!

Jul 16, 2009 at 11:44 PM

I've gotten started making xVal work with WebForms: