attaching an event to ServerValidate

G

Guest

I have attached a handler to ServerValidate event. But it does not get called
any at all. I have placed breakpoints inside the function, but nothing
happens. The ServerValidate event is in an external file. How could I know
why the event handler is not called.
 
G

Guest

One reason the ServerValidate won't fire (on a customValidator) is that the
control set in the "ControlToValidate" property isn't dirty (i.e. the
value/text hasn't changed). I've noticed this with some 3rd party controls,
and there is usually a workaround.

Also, the ServerValidate event will only be called on a postback, so if
there's an href or something on your page that is redirecting to another
page, you may have a problem there as well.
 

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

Forum statistics

Threads
473,767
Messages
2,569,571
Members
45,045
Latest member
DRCM

Latest Threads

Top