Professional Windows hosting from ORCS Web
    
An Unrivaled Windows Hosting Experience    
1-888-313-9421  |  webteam@orcsweb.com        
From Our Clients:
"You guys and gals do an outstanding job of keeping them servers running smoothly! No other web host I've ever used comes close to your level of uptime and support."

Join our community of clients at: 1-888-313-9421

Hexillion component
By Ben Higgins
May 4, 2004

Hexillion offers a component that will help you design an application with network validation features. The HexGadget product consist of 5 separate network components: HexVildEmail, HexDns, HexTCPQuery, HexICMP, and HexLookup. The code you will need to utilize the component is only a few lines as you will see in the example below.

This example shows you how to validate an email address entered into your web form by an end user. The component does several validation checks: MX lookup to validate the domain name, syntext check, and username test.

Here is a basic HTML form with a text box and a submit button. In this example you can place both the HTML and ASP code in the same page.

<% Option Explicit %>
<%
Dim hresult
Dim sEmail
Dim hObj
sEmail = Request("emailaddress")
%>


<HTML>
<HEAD>
<title>HexGadget</title>
</HEAD>
<body>
<form action="" method="post" Value="hexasp.asp">
Enter your email address:<br />
<INPUT type="text" NAME="emailaddress" VALUE="<%= sEmail %>">
<INPUT type="submit" value="Submit">
</form>
</body>
</HTML>

<%
If sEmail <> "" Then
	'Call the Hexgadget component.
	Set hObj = Server.CreateObject("HexValidEmail.Connection")
	'Validate the email address sent from the form above.
	hresult = hobj.validate(sEmail,1)
	
	'hresult will return either "0" or "1".
	If hresult = "0" Then
	 Response.Write("The email address you entered is invalid.")
	Else
	  Response.Write("The email address you entered passed the test.")
	End If
	
	Set hObj = nothing
End If
%>

You can find more information about this component at http://www.hexillion.com

~Ben

Ben Higgins is a member of the ORCS Web, Inc. Webteam - a company that provides managed hosting solutions for clients who develop and deploy their applications on Microsoft Windows platforms. Services include shared hosting, dedicated hosting, and webfarm hosting, with specialty in .Net, SQL Server, and architecting highly scalable solutions.

Copyright © 1996-2010 ORCS Web, Inc. All rights reserved.