[thelist] Getting the URL from the location bar in ASP?

Ken Schaefer ken at adOpenStatic.com
Mon Mar 31 03:00:21 CST 2003


Here's something you can run to work it our yourself :-)

<%
For each objItem in Request.ServerVariables

    With Response
        .Write(objItem & " = " & Request.ServerVariables(objItem) & "<br>" &
vbCrLf)
    End With

Next
%>

Cheers
Ken

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Christian Anderson" <chris at jobdragon.com>
Subject: [thelist] Getting the URL from the location bar in ASP?


: Hi,
:
: I had a few lines of ASP that would get the URL from the browsers location
: bar, and store it as a string, but unfortunately I've lost it... and cant
: remember how it was done.
:
: What is the code to get the information from the location bar?  I don't
need
: all the query string info, just the stuff from http:// to the end of the
: whatever.asp
:
: Help!
:
: Chris



More information about the thelist mailing list