<asp:RegularExpressionValidator
ID="RegularExpressionValidator1"
runat="server" ControlToValidate="TextBox1"
ErrorMessage="You must enter between 5 and 10 characters"
ValidationExpression=".{5,10}">
</asp:RegularExpressionValidator>
No comments:
Post a Comment