2012/03/23

Numbers Only! (1-9999)(Regualr Expression Validation)

<asp:RegularExpressionValidator ID="rgvClientCount" runat="server" ControlToValidate="txtClientCount"
                                ValidationExpression="^[1-9][0-9]{0,7}$" ErrorMessage="Numbers Only! (1-9999)"
                                Display="Dynamic" SetFocusOnError="true" ValidationGroup="Submit" /> 

0 comments:

Post a Comment