Validation in asp.net MVC - validation only to happen when "asked"

Posted by jeriley on Stack Overflow See other posts from Stack Overflow or by jeriley
Published on 2010-03-08T13:34:52Z Indexed on 2010/03/08 13:36 UTC
Read the original article Hit count: 641

Filed under:
|

I've got a slightly different validation requirement than the usual "when save, validate!". The system can allow someone to update a bunch of times without being "bothered" with a validation listing UNTIL they say it's complete. I thought I might be able to pull a fast one and put the [HandleError] on the method of which this would fire, but that validates every save.

Is there an attribte I can put into my custom validator that can handle this or am I going to have to write up my own HandleError attribute?

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about validation