By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,680 Members | 1,890 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,680 IT Pros & Developers. It's quick & easy.

HELP: Custom Validator won't fire

P: n/a
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.
Nov 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Did you associate this custom valitador to any controls?

--

SevDer
http://www.sevder.com
A new .NET Source For .NET Developers

"Ben" <be*@spammenot.netwiz.net> wrote in message
news:eN**************@TK2MSFTNGP12.phx.gbl...
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.

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.