<asp:TextBox ID="TextboxEmailAddress" runat="server" Width="200px"></asp:TextBox> * <asp:RegularExpressionValidator ID="RegularExpressionValidatorEmailAddress" runat="server" ControlToValidate="TextboxEmailAddress" ValidationExpression="^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.(([0-9]{1,3})|([a-zA-Z]{2,3})|(aero|coop|info|museum|name))$" Display="Dynamic" ErrorMessage="Invalid Email address"></asp:RegularExpressionValidator>
No comments:
Post a Comment