Validate user email address in ASP.NET (VBASPNETEmailAddressValidator)

The ASP.NET sample illustrates how to validate user's email address in the user registration form

 
 
 
 
 
5 Star
(1)
15,954 times
Add to favorites
5/5/2011
E-mail Twitter del.icio.us Digg Facebook
<?xml version="1.0"?>

<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->

<configuration>
    <connectionStrings>
        <add name="EmailValidationDBConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\EmailValidationDB.mdf;Integrated Security=True;User Instance=True"
            providerName="System.Data.SqlClient" />
    </connectionStrings>
    <system.web>
        <compilation debug="true" strict="false" explicit="true" targetFramework="4.0" />
      <httpHandlers>
        <add path="mail.axd" verb="GET" validate="false" type="VBASPNETEmailAddressValidator.EmailAvailableValidationHandler" />
      </httpHandlers>
    </system.web>

</configuration>