Small problem with Validators

G

Guest

I'm working in Dot Net 1.1

Assume a web page with a text box, and ASP webcontrol button, an HTML button
and a required field validator, called rfv1 for this example.

The validator is assigned to validate the textbox and it is intially disabled.

Assume that the HTML button's onClick event calls a javascript function
which in turn calls ValidatorEnable(document.getElementById("rfv1"), True).

This works fine, insofar as the validator is enabled. What I don't
understand is why the validator fires immediately on enablement.

My question is this: Is there any way within Javascript to clear spurious
validator events/messages?

(I use a scheme basically like this in dozens of screens to enable and
disable validators and spurious messages mean entirely too many end-user
questions.)
 

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,774
Messages
2,569,596
Members
45,143
Latest member
SterlingLa
Top