Strange RangeValidator behavior

B

BobRoyAce

I have a RangeValidator control on a page that is supposed to make sure that
the user does not enter a value outside of the range 0-nn.nn, where nn.nn is
some monetary value. For example, let's say I don't want to allow users to
enter values greater than 500.00. The strange behavior I am seeing is that,
if I enter a value like 500.000, the control rejects the value (i.e. flags
it as invalid). In fact, if I enter 100.000, it rejects that too! It's like
the control is comparing the digits with disregard for decimal or something
(e.g. 100000 vs. 50000). What's the deal with this? Do I need to use a Type
other than Currency?
 
2

2kool

It works perfectly here.

Properties:
MinimumValue="-500.00" MaximumValue="500.00" Type="Currency"
 

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,769
Messages
2,569,582
Members
45,061
Latest member
KetonaraKeto

Latest Threads

Top