开发者

How to make CustomValidators fire at the same time as RequiredFieldValidators

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜