Home > DeveloperSection > Forums > Email Validation
sandy taylor
sandy taylor

Total Post:46

Points:324
Posted on    February-17-2011 5:00 AM

 ASP.Net ASP.Net 
Ratings:


 3 Reply(s)
 1209  View(s)
Rate this:
I am working on a user details web from in ASP.NET where I have to validate users email id text box.
Do I need to use regular expression?
 


Uttam Misra

Total Post:125

Points:897
Posted on    February-17-2011 5:07 AM

You need to write a regular expression for it..

try this ^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$

Amit Singh

Total Post:103

Points:721
Posted on    February-17-2011 5:31 AM

check this regular expression for email id in textbox

\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*


manigovi manigovinth
manigovi manigovinth

Total Post:3

Points:21
Posted on    August-10-2011 2:48 AM

Hi...i provides email validation coding using asp.net...
<asp:RegularExpressionValidator 
ID="regexEmailValid"
runat="server"
ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
ControlToValidate="tbEmail"
ErrorMessage
="Invalid Email Format">
</asp:RegularExpressionValidator>



-------------------------------------------
Cegonsoft



Don't want to miss updates? Please click the below button!

Follow MindStick