<%@ Page language="c#" Codebehind="lookup.aspx.cs" AutoEventWireup="false" Inherits="aspNetLookupTest.lookup" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
    <meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
    <meta name="CODE_LANGUAGE" Content="C#">
    <meta name=vs_defaultClientScript content="JavaScript">
    <meta name=vs_targetSchema content="">
  <body MS_POSITIONING="GridLayout">
    <form id="lookup" method="post" runat="server">

<INPUT id=txtHost type=text runat="server" NAME="txtHost"><INPUT type=submit value=Lookup ID="Submit1" NAME="Submit1"> 
<br> <PRE><asp:Literal id=WhoisResults  Runat="server"></asp:Literal></PRE> 



using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using aspNetWhois;
namespace aspNetLookupTest
	/// Summary description for lookup.
	public class lookup : System.Web.UI.Page
		protected System.Web.UI.WebControls.Literal WhoisResults;
		protected System.Web.UI.HtmlControls.HtmlInputText txtHost;
		private void Page_Load(object sender, System.EventArgs e)
			if( Page.IsPostBack )
				WhoisResults.Text = Whois.QueryNow( "", txtHost.Value);

		#region Web Form Designer generated code
		override protected void OnInit(EventArgs e)
			// CODEGEN: This call is required by the ASP.NET Web Form Designer.
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		private void InitializeComponent()
			this.Load += new System.EventHandler(this.Page_Load);