开发者

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

开发者 https://www.devze.com 2022-12-22 10:31 出处:网络
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 listi

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 开发者_如何学Goto 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?

0

精彩评论

暂无评论...
验证码 换一张
取 消