Click here to Skip to main content
15,887,915 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello, I really like your Effective Email Address Validation samples. However I cannot download the source. my email is [Email Removed].

Thank you!
Posted
Updated 15-Jul-11 5:58am
v2
Comments
thatraja 15-Jul-11 12:00pm    
Don't post your email id in public forums & otherwise you may get lot of spams. BTW you can get mail notification when other people reply to your question.
LilliamClifford 8-Sep-17 3:45am    
You can refer to a following demonstration sample for validating email from c#.

 
Share this answer
 
v2
Try below code for Asp.Net(C#) Email Validation.

public static bool IsValidEmail(string email)
{
   System.Text.RegularExpressions.Regex rx = new System.Text.RegularExpressions.Regex(@"^[-!#$%&'*+/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+/0-9=?A-Z^_a-z{|}~])*@[a-zA-Z](-?[a-zA-Z0-9])*(\.[a-zA-Z](-?[a-zA-Z0-9])*)+$");

   return rx.IsMatch(email);
            
}
 
Share this answer
 
v3
Use validation controls in asp.net for emails.Specifically use regular expressions.or check this link for jquery validation An Example to Use jQuery Validation Plugin[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900