Validate EmailAddress in Asp.net using RegularExpressionValidator Control

Posted: July 11, 2011 in ASP.Net
Tags: ,

Here are the steps to validate EmailAddress in Asp.net using RegularExpressionValidator Control.

Add a RegularExpressionValidator control to your web page.

Set the ControlToValidate property to indicate which control to validate.
Set the ValidationExpression property to  regular expression as shown
in below image.


Set the Text property to define the message to display if the validation fails.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s