开发者

How to make CustomValidators fire at the same time as RequiredFieldValidators

开发者 https://www.devze.com 2023-01-25 16:52 出处:网络
I have a form containing both C开发者_如何学PythonustomValidators and RequiredFieldValidators. The Custom Validation doesn\'t fire until all of the requiredFieldValidators have passed.

I have a form containing both C开发者_如何学PythonustomValidators and RequiredFieldValidators.

The Custom Validation doesn't fire until all of the requiredFieldValidators have passed.

Can someone tell me how to get them to validate at the same time? I want all the validation messages to show when no data is input.


you need to create a javascript function and hook up the customvalidators via OnClientValidate, so that it will fire client side with the requiredfieldvalidators.

Check out: http://msdn.microsoft.com/en-us/library/f5db6z8k(VS.71).aspx

0

精彩评论

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