Click here to Skip to main content
12,350,143 members (26,574 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# ASP.NET
Hi guys..
Thanks in advance
I have created jobPortal application in asp.net.In that While Employer Register in Register.aspx then How to check valid Email or not in asp.net,c#...

Please Let me know...
Posted 10-Nov-12 4:52am
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Hi,

Have a look at this article:
Effective Email Address Validation[^]
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

Use this

string email ="^([a-zA-Z0-9_\\-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$";
           Regex r = new Regex (email);
           if (r.IsMatch(txtemailid.Text))
           {
               return true;
           }
           else
           {
               MessageBox.Show("Please Enter proper EmailId&quot","Employee Form", MessageBoxButtons.OK, MessageBoxIcon.Information);
               return false;
 
           }
  Permalink  
v2
Comments
santhosh19783 11-Nov-12 1:25am
   
Thanks a lot

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160621.1 | Last Updated 11 Nov 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100