1
Email:
2 < asp:TextBox ID = " TextBox1 " Runat = " server " ></ asp:TextBox >
3 & nbsp;
4 < asp:RegularExpressionValidator ID = " RegularExpressionValidator1 "
5 Runat = " server " ControlToValidate = " TextBox1 "
6 Text = " You must enter an email address "
7 ValidationExpression = " \w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)* " >
8 </ asp:RegularExpressionValidator >
2 < asp:TextBox ID = " TextBox1 " Runat = " server " ></ asp:TextBox >
3 & nbsp;
4 < asp:RegularExpressionValidator ID = " RegularExpressionValidator1 "
5 Runat = " server " ControlToValidate = " TextBox1 "
6 Text = " You must enter an email address "
7 ValidationExpression = " \w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)* " >
8 </ asp:RegularExpressionValidator >