Validators

C

Chuck Douglas

I am using a CompareValidator to make sure the content in a textbox control
is an integer. I am also using a RangeValidator to make sure the number is
between a certain range.

When the user types an alphanumeric string (i.e. "A67"), both validators
fire. I understand why the CompareValidator fires. Why does the
RangeValidator fire?

In this case, I do not want to see both errors. Is there anyway to have the
second through n validators not get evaluated, if the first validator failed?
Are there other options I should be considering?

Thanks
Chuck
 

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,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top