my code:
protected void Page_Load(object sender, EventArgs e)
{
String userHost = Request.UserHostName
}
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
I came across this lib but have no clue how to use it in the project..actually I do but I am not sure so asking....plz someone guide me with this
http://ipaddressextensions.codeplex.com/
when I d/l from 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 ?
something like...
if(countryName=="France")
{
response.redirect("www.mysite.fr")
}
else
if(countryName=="India")
{
response.redirect("www.mysite.in")
}
and so on...
how do I go about it ?? Also do I really need to type SO many if blocks for ALL the countries..how do I shorten this code ??
Plz help me out..thnx