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

Product List
  "MY BEST SHOPPING EXPERIENCE ON THE INTERNET. ListNanny did not support our mailing program, but dave suggested we send him some file samples and three days later we got a new version supporting our mailing program. Dave let us use the program, and only after he was satisfied that we have a working solution we paid for the standard product $129 - nothing for the special development. I wish all software vendors were so supporting of their customers."
D. Geisler
Broadway Box

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.