Could xVal be used in Non-MVC Webform Application ?

Jun 29, 2009 at 2: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 9:13 PM

I have the same question.

Jul 2, 2009 at 9: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 3:15 PM
Edited Jul 6, 2009 at 3:16 PM

"I have the same question."

Me too ...

Jul 8, 2009 at 8: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 12:15 PM

I'll give it a shot. Thanks!

Jul 16, 2009 at 10:44 PM

I've gotten started making xVal work with WebForms: