• Loading...
Atp UltimateEmailValidator
Creating a Web Application
Send comments on this topic to ATP, Inc.
Getting Started > Creating a Web Application

Glossary Item Box

This tutorial will walk you through creating a Web Application and add EmailValidator library to it.

Creating a new project and adding Email Validator library to it

  1. Start the Visual Studio .NET.
  2. From File menu, choose New, then choose Project.
  3. From the Project Creation dialog box, choose either Visual C# Projects or Visual Basic Projects then choose ASP.NET Web Application. Specify a name and a location for the project, then click OK.
    web
  4. Now add Email Validator library to your web application. To do this, add references to UltimateEmailValidator.dll, UltimateCommon, and UltimateProxy.dll assemblies. Please see Installation instruction for C# and Installation instruction for VB.NET for more details.
  5. Now make a quick application to test. Drag a Button and a Label onto the form.
  6. Add the following code to the button "OnClick" event handler. This code is for validating an e-mail address.
    C# Copy Code
    System.Web.UI.WebControls.Label label1 = new System.Web.UI.WebControls.Label();
    // Create a new instance of the EmailValidator class.
    EmailValidator validator = new EmailValidator();
    // Validate the email.
    ValidationLevel result = validator.Validate("info@atp-inc.net");
    // Show result.
    label1.Text = string.Format("Email address '{0}' has been validated at level {1}", "info@atp-inc.net", result.ToString());
    VB.NET Copy Code
    ' Create a new instance of the EmailValidator class.
    Dim validator As New EmailValidator()
    ' Validate the email.
    Dim result As ValidationLevel = validator.Validate("info@atp-inc.net")
    ' Show result.
    label1.Text = String.Format("Email address '{0}' has been validated at level {1}", "info@atp-inc.net", result.ToString())
  7. Compile and execute the application by navigating to the Debug menu and choose Start. Click the button and you should see a message indicating that the email has been validated in the label control.
ATP, Inc. is a Microsoft Partner. Our components are compatible with Windows 7 and optimized for Visual Studio