September 09, 2009
A snippet for using the RegularExpressionValidator to validate if form field holds a correct e-mail address:<asp:RegularExpressionValidator ControlToValidate=
"EmailField" ValidationExpression=
"\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Text="*"
ErrorMessage="Not a valid e-mail address" runat="server" />
Comments
comments powered by Disqus