There is a website www.showmyip.com that give you the XML file for the details of the IP address. All you need is to pass the IP address in Querystring. See the methord below.
string IP = Request.ServerVariables["REMOTE_ADDR"];
XmlDocument doc = new XmlDocument();
//send the request to www.showmyip.com sending the ip as a query string
//and loads the xml file in the document object
doc.Load("http://www.showmyip.com/xml/?ip=" + IP);
//begin finding the country by tag name
XmlNodeList nodeLstCountry = doc.GetElementsByTagName("lookup_country");
////begin finding the city by tag name
XmlNodeList nodeLstCity = doc.GetElementsByTagName("lookup_city2");
//concatinating the result for show, u could also use it
//to save in data base
String info = "Country :" + nodeLstCountry[0].InnerText + " -- City :" + nodeLstCity[0].InnerText + "";
Response.Write(info);
Note:
www.showmyip.com only allows 199 request/day as a free call, for more requests u could register with them.
No I need to develop my own,so I want a reference for this,I need to understand and analysis the whole system so I require document for this so I can easily analysis
KeyurN
Member
105 Points
201 Posts
Location Detail From Client IP
May 18, 2009 10:06 AM|LINK
HI ALL
I want to get client location details form the IP address.
is it possible.or any other way to find
Keyur N
venkatu2005
All-Star
32487 Points
6742 Posts
Re: Location Detail From Client IP
May 18, 2009 10:37 AM|LINK
http://www.aspsnippets.com/post/2009/04/12/Find-Visitors-Geographic-Location-using-IP-Address-in-ASPNet.aspx
Credit goes to Mudarsha..
Thanks.
deadend
Member
278 Points
44 Posts
Re: Location Detail From Client IP
May 18, 2009 10:47 AM|LINK
There is a website www.showmyip.com that give you the XML file for the details of the IP address. All you need is to pass the IP address in Querystring. See the methord below.
string IP = Request.ServerVariables["REMOTE_ADDR"]; XmlDocument doc = new XmlDocument(); //send the request to www.showmyip.com sending the ip as a query string //and loads the xml file in the document object doc.Load("http://www.showmyip.com/xml/?ip=" + IP); //begin finding the country by tag name XmlNodeList nodeLstCountry = doc.GetElementsByTagName("lookup_country"); ////begin finding the city by tag name XmlNodeList nodeLstCity = doc.GetElementsByTagName("lookup_city2"); //concatinating the result for show, u could also use it //to save in data base String info = "Country :" + nodeLstCountry[0].InnerText + " -- City :" + nodeLstCity[0].InnerText + ""; Response.Write(info);KeyurN
Member
105 Points
201 Posts
Re: Location Detail From Client IP
May 18, 2009 11:45 AM|LINK
Hey, this is great helps.
can u help me in this,I have to made payroll module,so i need anlysis on that ,is there any document or link provide so i can anlysis.
please help me.
Keyur N
mudassarkhan
All-Star
78956 Points
13402 Posts
MVP
Re: Location Detail From Client IP
May 18, 2009 11:54 AM|LINK
Do you need a online payment system?
Contact me
KeyurN
Member
105 Points
201 Posts
Re: Location Detail From Client IP
May 18, 2009 11:59 AM|LINK
No I need to develop my own,so I want a reference for this,I need to understand and analysis the whole system so I require document for this so I can easily analysis
Please help me.
Keyur N
mudassarkhan
All-Star
78956 Points
13402 Posts
MVP
Re: Location Detail From Client IP
May 18, 2009 12:03 PM|LINK
You can read these
http://www.codeproject.com/KB/aspnet/UsePayPalPaymentInASPNET.aspx
http://www.codeguru.com/csharp/.net/net_asp/miscellaneous/article.php/c13851
http://weblogs.asp.net/scottgu/archive/2006/04/11/Credit-Card-Payment-Processing-with-ASP.NET.aspx
Contact me
KeyurN
Member
105 Points
201 Posts
Re: Location Detail From Client IP
May 18, 2009 12:19 PM|LINK
I need to manage all the details related to employee lik leave,attendance.i go through some document i didn't understand.please help me
Keyur N
KeyurN
Member
105 Points
201 Posts
Re: Location Detail From Client IP
May 18, 2009 12:21 PM|LINK
I have to create whole HRMS system.so need to understand the all the feature.can u give any document or link.so i can anlysis
Keyur N
deadend
Member
278 Points
44 Posts
Re: Location Detail From Client IP
May 18, 2009 12:28 PM|LINK
Hi,
Find below some demos and guides of payroll system. you can get best idea for how to develop the stuff from here
https://www.paycycle.com/demo/FlashDemo/SBExternalFlashDemo.html
http://www.sageabra.com/abrademos/
http://www.ird.govt.nz/payroll-employers/software-developers/
http://www.hmrc.gov.uk/comp/notes11-8.pdf
Regards,
Tipu.
_________________________________________________________________________________________________________________
[:)]Remember to mark as answer if something helps you.[:)]