At Least 'n' Characters required..
Last Name: <asp:Textbox id="txtLastName" runat="server"></asp:Textbox>
<asp:regularexpressionvalidator id=REVLastName runat="server" controltovalidate="TxtLastName" errormessage="please enter at least 3 charaters"
validationexpression="[0-9a-zA-Z]{3,}"></asp:regularexpressionvalidator >
Here we used RegularExpressionValidator to validate that user enter at least 3 characters in the Last name TextBox by add this regular expression [0-9a-zA-Z]{3,}.
Last Name: <asp:Textbox id="txtLastName" runat="server"></asp:Textbox>
<asp:regularexpressionvalidator id=REVLastName runat="server" controltovalidate="TxtLastName" errormessage="please enter at least 3 charaters"
validationexpression="[0-9a-zA-Z]{3,}"></asp:regularexpressionvalidator >
Here we used RegularExpressionValidator to validate that user enter at least 3 characters in the Last name TextBox by add this regular expression [0-9a-zA-Z]{3,}.
0 comments:
Post a Comment