开发者

ASP .NET Multiple Custom Validators on a single page

开发者 https://www.devze.com 2022-12-30 16:54 出处:网络
Can you have more than one CustomValidator on a single page? I have two separate CustomValidators with two separate controls on one page.Both ServerValidateEventHandlers are setup for each control.

Can you have more than one CustomValidator on a single page?

I have two separate CustomValidators with two separate controls on one page. Both ServerValidateEventHandlers are setup for each control.

The issue is t开发者_如何学JAVAhat it only fires on the first event handler twice.


Yes you can have multiple CustomValidators. Are you sure that the custom validators are using different OnServerValidate methods and they aren't both pointing to the same method?

0

精彩评论

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