B
BobRoyAce
Let's say I have a text box on a page in which a user is to enter a monetary
amount and that I want to ensure that the user enters a value greater than
or equal to a certain value that will be determined by interrogating a
database at runtime. There is a button on the page that the user clicks on
to Save the data they have entered. In the click event of this button I want
to check to see if they have entered a value no greater than the maximum
value allowed. What is best way to do this? I have tried using a
RangeValidator (of type currency), specifying its maximum value, but that
control gives strange behavior. For example, if maximum value specified is
45, and the user enters "45.", the control reports back that the value is
not acceptable. .
amount and that I want to ensure that the user enters a value greater than
or equal to a certain value that will be determined by interrogating a
database at runtime. There is a button on the page that the user clicks on
to Save the data they have entered. In the click event of this button I want
to check to see if they have entered a value no greater than the maximum
value allowed. What is best way to do this? I have tried using a
RangeValidator (of type currency), specifying its maximum value, but that
control gives strange behavior. For example, if maximum value specified is
45, and the user enters "45.", the control reports back that the value is
not acceptable. .