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.
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.