Asp.Net MVC 2 Client validation implementation for Enterprise Library Validation Block
Posted
by er-v
on Stack Overflow
See other posts from Stack Overflow
or by er-v
Published on 2010-04-19T11:29:18Z
Indexed on
2010/04/19
11:33 UTC
Read the original article
Hit count: 372
Hello to everybody. I've found a very good article about how to use EntLib Validation Block for server validation in MVC 2. But as there pointed out
The current design of EntLib’s Validation Application Block uses the Composite pattern; that is, when we ask for validation for an object, it returns back a single validator object that contains a list of all the validation work to be done. While this is very convenient from a normal usage scenario, the unfortunate side-effect is that we can’t “peek inside” to see what the individual validations are that it’s doing, and therefore can’t generate the appropriate client-side validation hints.
So how is it possible to implement client side validation for EntLib? Is there work around?
© Stack Overflow or respective owner