EMAIL VALIDATION

sandy taylor

Total Post:46

Points:324
Posted by  sandy taylor
 1477  View(s)
Ratings:
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?
 
  1. Uttam Misra

    Post:126

    Points:906
    Re: Email Validation

    You need to write a regular expression for it..

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

  1. Amit Singh

    Post:103

    Points:721
    Re: Email Validation

    check this regular expression for email id in textbox

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

  1. manigovi manigovinth

    Post:3

    Points:21
    Email Validation

    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


Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!