Nick2
|
| Posted: 03/06/2005, 1:40 PM |
|
Hi,
I know one API which can crab information about IP i.e. location, city etc.
http://www.hostip.info/api/get.html?ip=12.215.42.19
I want above ip replaced with Request.ServerVariables("REMOTE_HOST"). So that when someone visit a webpage, it get ip address and then populate it in URL.
So I am looking something:
http://www.hostip.info/api/get.html?ip=Request.ServerVa...EMOTE_HOST")
Thanks for your help.
Nick
|
|
|
 |
DonB
|
| Posted: 03/08/2005, 1:35 PM |
|
Create a Link control (or ImageLink if you want a graphical link). Add the
URL to the link (Href Source property) as you've shown it. BUT, in the link
parameters, change it to an "Expression" source type and put the
Request.ServerVariables in the parameter source, and "ip" (without the
quotes) in the parameter name. The IP will be evaluated before the Link is
displayed and you'll see attached to it is the parameter as you indicated,
an ip address.
--
DonB
http://www.gotodon.com/ccbth
"Nick2" <Nick2@forum.codecharge> wrote in message
news:6422b78d5d774d@news.codecharge.com...
> Hi,
>
> I know one API which can crab information about IP i.e. location, city
etc.
>
> http://www.hostip.info/api/get.html?ip=12.215.42.19
>
> I want above ip replaced with Request.ServerVariables("REMOTE_HOST"). So
that
> when someone visit a webpage, it get ip address and then populate it in
URL.
>
> So I am looking something:
>
> http://www.hostip.info/api/get.html?ip=Request.ServerVa...EMOTE_HOST")
>
> Thanks for your help.
>
> Nick
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|