Getting the full URL

N

Nathan Sokalski

I need to get the full URL of the current page in ASP. When using
Request.ServerVariables("URL") anything after the filename (such as a
#section1 to jump to an area on the page or data submitted from a form using
the GET method) is automatically removed. I do not know of any keys for the
Request.ServerVariables collection that do this, but cannot find any other
objects/properties that would be appropriate. Any help would be appreciated.
Thank You.
 
E

Evertjan.

Nathan Sokalski wrote on 28 jun 2004 in
microsoft.public.inetserver.asp.general:
I need to get the full URL of the current page in ASP. When using
Request.ServerVariables("URL") anything after the filename (such as a
#section1 to jump to an area on the page or data submitted from a form
using
the GET method) is automatically removed. I do not know of any keys
for the Request.ServerVariables collection that do this, but cannot
find any other objects/properties that would be appropriate. Any help
would be appreciated. Thank You.

response.write Request.ServerVariables("URL") & "?" & Request.querystring

Please stop this gross crossposting.

Foollow up only to: microsoft.public.inetserver.asp.general
 
A

Aaron [SQL Server MVP]

I need to get the full URL of the current page in ASP.

Then why are you posting to asp.net, webcontrols, webservices, and
components newsgroups?

Follow-ups set ONLY to asp.general.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top