HELP: Custom Validator won't fire

B

Ben

i'm having trouble getting a custom validator to fire on one of my webforms.
i dragged a custom validator onto the form, left all the properties on
default, double clicked it, and typed this in the handler:

private void CustomValidator1_ServerValidate(object source,
System.Web.UI.WebControls.ServerValidateEventArgs args)
{
args.IsValid = false;
}

the handler never fires. this works perfectly on a new webform i created
just to test this, but it won't fire on my other webform. the form has one
submit button, with "Causes Validation" set to true. the other non-custom
validators on the page do work, but none of the custom validators work. what
gives? TIA.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,738
Latest member
JinaMacvit

Latest Threads

Top