0

Hi, can someone to help me to write an regular expression for a number from 1-100.
I need to validate an age field.

Thank you

2
Contributors
4
Replies
5
Views
9 Years
Discussion Span
Last Post by nandhinijp
0

You can use RangeValidator for your requirement.Try this!

<asp:RangeValidator ID="validateage" runat="server" Type="Integer" ControlToValidate="txtage" MinimumValue="1" 
        MaximumValue="100" ErrorMessage="Your age must be between 1 and 100" Display="Dynamic" ></asp:RangeValidator>
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.