Range Validator Does Not Work Properly

J

Joey

I have a page with a range validator on it. I have the following set...

ControlToValidate=txtSomeTextBox
MinimumValue=1
MaximumValue=2000

Now, when I run the form, the values 1,2,10 all pass the test while
3,4,5,6,7,8, and 9 fail. This is very strange behavior, and I have no
idea how to fix it? I have already tried replacing the range validator
with a new one, but that didn't work. Any ideas?
 
R

Riki

Joey said:
I have a page with a range validator on it. I have the following
set...

ControlToValidate=txtSomeTextBox
MinimumValue=1
MaximumValue=2000

Now, when I run the form, the values 1,2,10 all pass the test while
3,4,5,6,7,8, and 9 fail. This is very strange behavior, and I have no
idea how to fix it? I have already tried replacing the range validator
with a new one, but that didn't work. Any ideas?

Don't forget to set the "Type" property.
It should be set to Integer instead of String.
 

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,755
Messages
2,569,537
Members
45,023
Latest member
websitedesig25

Latest Threads

Top