ASP.NET beginner question: Need help regarding using some class library
<p>My code:</p>

<pre><code>    protected void Page_Load(object sender, EventArgs e)
    {
        String userHost = Request.UserHostName
    }
</code></pre>

<p>This is fetching the IP address alright, but now I want to know the country of the visitor and USE that country name to redirect the visitor to some webpage accordingly.</p>

<p>I came across this library but have no clue how to use it in the project. Actually I do, but I am not sure so I am asking.</p>

<p><a href="http://ipaddressextensions.codeplex.com/" rel="nofollow">http://ipaddressextensions.codeplex.com/</a></p>

<p>When I download from the above the ZIP folder has a DLL file and an XML file. Now, what do I do with these two? Like include in the project. Then what do I type in the code file?</p>

<p>Something like the following.</p>

<pre><code>if (countryName=="France")
{
    response.redirect("www.mysite.fr")
}
else
    if(countryName=="India")
    {
        response.redirect("www.mysite.in")
    }
</code></pre>

<p>and so on...</p>

<p>How do I go about it? Also do I really need to type SO many <code>if</code> blocks for ALL the countries. How do I shorten this code?</p>
