<asp:RegularExpressionValidator
id="RegularExpressionValidator1"
runat="server"
ControlToValidate="TextBox1"
ValidationExpression="^[0-9a-zA-Z]+$"
ErrorMessage="Only Alphanumeric characters">
</asp:RegularExpressionValidator>
No comments:
Post a Comment