RegularExpression Email Validation

Ranjeet_8
Posted by Ranjeet_8 under Regular Expressions category on | Points: 40 | Views : 1455
<asp:TextBox ID="txtEmailID" runat="server" MaxLength="30" Width="140px"></asp:TextBox>

<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
ErrorMessage="Enter valid Email Id" ControlToValidate="txtEmailID" SetFocusOnError="true"
ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">
</asp:RegularExpressionValidator>

Comments or Responses

Login to post response