Click here to Skip to main content
Rate this: bad
good
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 5: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 at 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
0 DamithSL 315
1 Zoltán Zörgő 170
2 OriginalGriff 150
3 Sergey Alexandrovich Kryukov 120
4 Maciej Los 115
0 OriginalGriff 7,760
1 DamithSL 5,874
2 Sergey Alexandrovich Kryukov 5,444
3 Maciej Los 5,076
4 Kornfeld Eliyahu Peter 4,539


Advertise | Privacy | Mobile
Web04 | 2.8.141223.1 | Last Updated 11 Nov 2012
Copyright © CodeProject, 1999-2014
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