Home | Contact Us | Download | Support | Purchase | Products

Product List
  "I've been working for 2 days on an SQL Server Extended Stored Procedure (as a DLL in C++) which would extract a preview from complete email message text stored in the database. Then I found aspNetMime, downloaded the demo and had the whole thing working in 5 minutes. Another 2 minutes to purchase. Brilliant! Thanks, folks!"
Roger Lainson
SDR Clinical Technology

Whois Query using Events

The following example demonstrates how to perform a Whois query using the event driven model.


 using System;
 using aspNetWhois;
 namespace ConsoleApplication1
 	class Class1
 		static void Main(string[] args)
 			Whois w = new Whois( "microsoft.com", "whois.networksolutions.com" );
 			w.QueryEvent += new QueryEventHandler( Whois_OnQuery );
 			Console.WriteLine( "done" );
 		static void Whois_OnQuery( object sender, QueryEventArgs e )
 			Console.WriteLine( "Sever: " + e.Server );
 			Console.WriteLine( "DomainName: " + e.DomainName );
 			Console.WriteLine( e.Results );


Imports aspNetWhois
Module Module1

    Sub Main()
        Dim w As New Whois("microsoft.com", "whois.networksolutions.com")
        AddHandler w.QueryEvent, AddressOf Whois_OnQuery

    End Sub

    Sub Whois_OnQuery(ByVal sender As Object, ByVal e As QueryEventArgs)
        Console.WriteLine(("Sever: " + e.Server))
        Console.WriteLine(("DomainName: " + e.DomainName))
    End Sub 'Whois_OnQuery

End Module

The box is not shipped. aspNetWhois is a downloadable product.