About .NET Dave |  Advertise |  Contact Us |  FAQ |  Link2Me |  Webmasters |  Manage My Submissions
 
 
    Cool Stuff |  Hot Stuff! |  Newsletter |  What's New? |  Rotor Source Code
   
aspNetEmail

  Validate an Email address format Rate this Resource  2  read reviews write a review report an error printer friendly version
using the validator control, validate an email address. Posted on asplists, by doug at aspnextgen.com.
Extended Description 
<asp:RegularExpressionValidator runat="server"
ValidationExpression="[\w\x2E]{2,}\x40{1}[\w\x2E]{2,}\x2E{1}[\w\x2E]{2,}"
ControlToValidate = "txtEmail"
>*</asp:RegularExpressionValidator>


here is another validator expression

<asp:RegularExpressionValidator runat="server"
ValidationExpression="^[\w\.\-_]+@([\w\.\-_]+\.)+[A-Za-z]{2,4}$"
ControlToValidate = "txtEmail"
>*</asp:RegularExpressionValidator>
    Total Views:5819 | Today:78 Total Hits:1362 | Today:0


Customer Reviews

Rejects valid email addresses 2/15/2005
a reviewer from Oxford,UK writes
Neither of these validators will accept all valid email addresses

Don't work all time 7/10/2003
a reviewer from Fran, Savoie, France writes
This expression don't work with an email like:
firtsname.lastname@host.my-company.com


Is this your resource?
To add the following Ratings and Review bar to your website    Review this Page       

Copy and paste one of the following blocks of code to your webiste.


This first block of code ueses javascript to pop up a dialog box, so the web surfer can enter a review without ever leaving your website.

Or you can use this block of code.


This block of code DOES NOT use javascript, and will open a new window to 123aspx.com

 

 

 

 


ASP.NET User Interface Control Set


DotNetNuke Modules

Corporate Web Solutions .netCHARTING

DotNetNuke Modules
  Hosted By:
  Check Out:
  #1 .NET Email
  .NET Email Validation
Back to Top   Last Updated: 9/1/2010 6:08:10 AM
© 2010www.123aspx.com All rights reserved. Terms of Use.   email comments: support@123aspx.com  or use our online form.