![]() |
| ||
| Regular Expressions 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 |
| ||
| Re: Regular Expressions You can use RangeValidator for your requirement.Try this! <asp:RangeValidator ID="validateage" runat="server" Type="Integer" ControlToValidate="txtage" MinimumValue="1" |
| ||
| Re: Regular Expressions I found it ^[1-9][0-9]?[0-9]?$ |
| ||
| Re: Regular Expressions Thank you nandhinijp. Your solutin is better then mine. |
| ||
| Re: Regular Expressions If its ok, Mark as Solved. |
| All times are GMT -4. The time now is 10:52 pm. |
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC