Start using CountryHawk in your code

Quick start step 3: Start using CountryHawk

After confirming your installation was successful, you are now ready to incorporate CountryHawk into your web site or application. To do this you simply create an instance of the component, and call the appropriate properties and methods depending on how you would like to use the product.

For example, assume you wanted to redirect all users from countries other than those you do business with to an alternative page. In this case you would create an instance of the component, check the CountryCode property to see if it was an unsupported country, and redirect the user to the alternate page if so.

The samples included with the product provide an excellent introduction to the most common properties and methods and are an excellent learning tool just by studying their source.

See Also:

About the Quick Start Guide

Download and install CountryHawk

Test your installation

Installation Guide