Groups | Blog | Home
all groups > asp.net webcontrols > june 2004 >

asp.net webcontrols : Getting the full URL


Nathan Sokalski
6/28/2004 5:13:42 PM
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.
--
Nathan Sokalski
njsokalski@hotmail.com
www.nathansokalski.com

Aaron [SQL Server MVP]
6/28/2004 5:49:52 PM
[quoted text, click to view]

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

Follow-ups set ONLY to asp.general.

--
http://www.aspfaq.com/
(Reverse address to reply.)

Evertjan.
6/28/2004 9:20:44 PM
Nathan Sokalski wrote on 28 jun 2004 in
microsoft.public.inetserver.asp.general:
[quoted text, click to view]

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

Please stop this gross crossposting.

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

--
Evertjan.
The Netherlands.
AddThis Social Bookmark Button