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


Product List
 
  "Thank you for the component and update link. You have really done an amazing job. The number of email campaigns has risen in recent months and thanks to your email software we haven't encountered a single issue. Allof these are amazing components. So far there has been not a single incident where we have encountered a bug. :). Great job Dave. In my opinion its amazing. Thanks again for such an astonishing work. Keep up the hard work world need more software providers like you. "
D. Ghazanfar
G.M.
 
More
Testimonies

Whois Query using Events

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

[C#]

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



[VB.NET]

Imports aspNetWhois
Module Module1

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


        Console.WriteLine("done")
        Console.ReadLine()
    End Sub


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

End Module







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