I have the following regular expression validator on textboxes where users enter in a numeric amount that is to be added to an sql database with decimal datatype.
If the field is left blank it comes up with input string was not in correct format. Also even if I type in 50 or 50.00 it comes up with the same error.
Any ideas
Thanks
Code:
^\d+(\.\d\d)?$
If the field is left blank it comes up with input string was not in correct format. Also even if I type in 50 or 50.00 it comes up with the same error.
Any ideas
Thanks