CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 How to display IP details?

Print topic Send  topic

Author Message
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/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.