Monday, 10 May 2010

How to create an email validator on a web page

Came across this requirement recently on an asp.net application I'm developing. Handy to know that you can easily create a regular expression to handle email formats like this:


ControlToValidate="textbox1"
ValidationExpression=".*@.*\..*"
ErrorMessage="* Your entry is not a valid e-mail address."
display="dynamic">*

No comments:

Post a Comment

Note: only a member of this blog may post a comment.