views:

137

answers:

2

I have worked with the .MVC framework using validation frameworks such as xVal or FluentValidation.

Is there anything similar available for webforms as well? I have got a few projects which have to be done using webforms.

What I'm asking for is some kind of integration with the webforms infrastructure. I could just use one of the mentioned frameworks in order to validate the (view/page)models, but I still would have to do a lot of form validation in the page.

Thanks for any answers in advance. I'd really appreciate if you could describe or refer to the level of webforms integration.

+2  A: 

There is a project in codeplex trying to port xVal to Webforms, take a look at http://xvalwebforms.codeplex.com/

Ariel Popovsky
+1  A: 

You can take a look at the Validation Application Block from the Enterprise Library. I've never tried to integrate it using webforms, but it does have a page dedicated to just that. Maybe this is something that can help:

http://msdn.microsoft.com/en-us/library/cc309331.aspx

Jacob R
Also look at the following article when doing VAB ASP.NET integration: http://www.codeproject.com/KB/aspnet/ApplicationBlock.aspx
Steven