J
JJ297
How do I validate a text box field which only requires a number in it?
How do I validate a text box field which only requires a number in it?
Hi there,
Use RangeValidator with Type set to "Integer". You can also specify min and
max values as well by changing MinimumValue & MaximumValue properties
respectively. Note validation succeeds if the input control is empty. Apply
RequiredFieldValidator control to make the input control a mandatory field.
Hope this helps
--
Milosz
- Show quoted text -
Thanks Milosz
I got it to work but when I enter in number all of my validation comes
up on the page how can I just get the error to say enter a number to
only come up and not the other messages?- Hide quoted text -
- Show quoted text -