Dan7el
Dan7el

Reputation: 2047

ASP .NET Multiple Custom Validators on a single page

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 that it only fires on the first event handler twice.

Upvotes: 1

Views: 1835

Answers (1)

Riain McAtamney
Riain McAtamney

Reputation: 6432

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?

Upvotes: 3

Related Questions