Regular Expression is
- \w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*
after Adding with Textbox code will look like as follows
- <asp:TextBox ID="txtmail" ValidationGroup="Validform" runat="server</asp:TextBox>
- <asp:RegularExpressionValidator ID="revEmail" runat="server"
- ErrorMessage="Invalid Email Address"
ControlToValidate="txtmail"
- SetFocusOnError="true"
- ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
ValidationGroup="Validform" Display="Dynamic" ForeColor="#CC0000"></asp:RegularExpressionValidator>