give one ip, find out which contry
Answers were Sorted based on User's Feedback
Answer / sunil
You can use simple ASP script to lookup country code/name
from any ip addresses
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ranjita
hi sunil
can you give me the code for that or can you explain in detail
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sunil
ASP Script Usage and Sample - you may use the following
features independently
1. Create and destroy the component
' Create an instance of ActiveTarget object
Set ActiveObj = Server.CreateObject("ACTarget.IPGEO")
' Free the instance after use
Set ActiveObj=nothing
2. Get the client visitor's ip address
'Return the ip address of the current visitor
ClientIP = ActiveObj.ClientIP
3. Detect client visitor's country code
'Return the two letters iso country codelike us, uk, jp etc.
VisitorCountry= ActiveObj.ClientRegion
4. Detect client visitor's full country name
'Return full country name like United States, United Kingdom
etc.
VisitorFullCountry = ActiveObj.ClientFullRegion
5. Look up the country code from an ip address
'Custom IP address to two letters country code lookup
IP="150.48.244.170"
IPCountry = ActiveObj.Lookup(CStr(IP))
or
IPCountry = ActiveObj.Lookup("150.48.244.170")
6. Look up the country name from an ip address
'Custom IP address to full country name lookup
IP="150.48.244.170"
IPFullCountry=ActiveObj.FullLookUp(CStr(IP))
7. Resolve a host/domain name to ip address
IP=ActiveObj.DNSLookup("www.microsoft.com")
8. Convert country code to full country name
CountryName=ActiveObj.RegionCodeToName("CA")
9. Check the current status of the component
'It will output ActiveTarget DLL version, ip-country
database version,
' current status, last loaded time, self-test etc.
Response.Write ActiveObj.Version
10. Reload the database when updated
'Only when you get new version of ip-country database, then
use this method to load the new database without restarting
your server or IIS.
ActiveObj.ReloadLibrary
Is This Answer Correct ? | 0 Yes | 0 No |
what is the output for this question: main() { int i=1; printf("%d%d%d",i,i++,++i); }
Q. where is the below variables stored ? - volatile, static, register
Unsigned char c; for ( c=0;c!=256;c++2) printf("%d",c); No. of times the loop is executed ?
from which concept of 'c', the static member function of 'c++' has came?
write a c program to remove all the duplicate characters in a string and replace with single character? ex:-input- AAABBBCCC output- ABC
Explain modulus operator. What are the restrictions of a modulus operator?
There is a mobile keypad with numbers 0-9 and alphabets on it. take input of 7 keys and then form a word from the alphabets present on those keys.
Write a program which calculate sum of several number and input it into an array. Then, the sum of all the number in the array is calculated.
What is character constants?
Do string constants represent numerical values?
What is structure and union in c?
marge linklist