When you think ASP, think...
Recent Articles
All Articles
ASP.NET Articles
Related Web Technologies
User Tips!
Coding Tips

Sample Chapters
JavaScript Tutorials
MSDN Communities Hub
Official Docs
Stump the SQL Guru!
XML Info
Author an Article
Print this page.
Email Address Valdation

Axiom 1: If you're going to gather information on your users, make sure it's valid information.

If you're going to use FORMs to collect your user's information, it is important that you validate this information. Validation can be done in one of two ways, through client-side validation (i.e. JavaScript) or through server-side validation (ASP).

If you want to validate your user's email you need to check for a few things. The @ symbol, at least one period, at least one character before the @ symbol, at least one after before the period, and at least one after the period. Here are two server-side scripts which will help you validate email!

  • Ian Stallings JScript/Regular Expression Email Validation Routine
  • Ben Durbin's Email Validation Routine
  • Joao Vieira's Email Validation Routine
  • You can also validate email through client-side validation using JavaScript. Here is an article discussing that approach:

  • Form Validation with JavaScript
  • Happy Programming!

    Validation Articles
    For more information on email address and form validation, check out these great articles!

  • The Forgotten Art of Email Address Validation
  • ASP/JScript Email Validation
  • A Server-Side Email Validation Routine
  • Another Email Validation Routine
  • Form Validation Using JavaScript
  • Using the Dictionary Object Data Collection and Validation

  • ASP.NET [1.x] [2.0] | ASPFAQs.com | Advertise | Feedback | Author an Article