Override ModelState.IsValid Property

Posted by griegs on Stack Overflow See other posts from Stack Overflow or by griegs
Published on 2010-04-16T00:06:30Z Indexed on 2010/04/16 0:43 UTC
Read the original article Hit count: 440

Filed under:
|

How can I override the IsValid property?

I have a model that's validating as false. I have a custom ValidationAttribute on the model and I'd like to set the IsValid flag for the whole model under certain circumstances.

Is this possible?

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about validation