Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Getting the full URL

Reply
Thread Tools

Getting the full URL

 
 
Nathan Sokalski
Guest
Posts: n/a
 
      06-28-2004
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

www.nathansokalski.com


 
Reply With Quote
 
 
 
 
Evertjan.
Guest
Posts: n/a
 
      06-28-2004
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

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
 
Reply With Quote
 
 
 
 
Aaron [SQL Server MVP]
Guest
Posts: n/a
 
      06-28-2004
>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.

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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
getting full URL from relative links slugger3113 Perl Misc 4 04-19-2010 04:24 PM
Get full url from relative url David Thielen ASP .Net Web Controls 2 05-26-2006 05:29 PM
Getting the full URL Nathan Sokalski ASP General 3 06-28-2004 10:39 PM
Getting the full URL Nathan Sokalski ASP .Net 2 06-28-2004 09:49 PM
Getting the full URL Nathan Sokalski ASP .Net Web Services 2 06-28-2004 09:49 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57