Re: Getting the full URL

From: Aaron [SQL Server MVP] (ten.xoc_at_dnartreb.noraa)
Date: 06/29/04


Date: Mon, 28 Jun 2004 20:12:09 -0400

Right, this is all handled on the client side; the browser scans the HTML
and finds the <a name> bookmark, and scrolls to that location. ASP is never
involved in this process at all. In fact, in some scenarios, ASP can cause
the browser to bypass the process altogether.

http://www.aspfaq.com/2070

-- 
http://www.aspfaq.com/
(Reverse address to reply.)
"Mark Schupp" <mschupp@ielearning.com> wrote in message 
news:e$$b4zWXEHA.3676@TK2MSFTNGP09.phx.gbl...
>I think you are pretty much out of luck there. The browser doesn't appear 
>to
> send the page hash.
>
> Here is what I get for a trace when I enter
> http://localhost/wbtmanager/listsesvars.asp#help
>
> GET /wbtmanager/listsesvars.asp HTTP/1.1
> Accept: */*
> Accept-Language: en-us
> Accept-Encoding: gzip, deflate
> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
> Host: localhost
> Connection: Keep-Alive
> Cookie: ASPSESSIONIDAQDTTRCT=FALPMHFALOJJNKDGPKIEHFPO;
> ASPSESSIONIDCSCSTQCS=NPLFPHFAOPELEGGFCEIKDJHE
>
>
> -- 
> Mark Schupp
> Head of Development
> Integrity eLearning
> www.ielearning.com
>
>
> "Nathan Sokalski" <njsokalski@hotmail.com> wrote in message
> news:%23Ev0vCWXEHA.3892@TK2MSFTNGP09.phx.gbl...
>> That would work for data posted via a form using the GET method, but what
>> about URLs that jump to a specific part of the page (using something like
>> filename.asp#titleindex)?
>> -- 
>> Nathan Sokalski
>> njsokalski@hotmail.com
>> www.nathansokalski.com
>>
>>
>> "Evertjan." <exjxw.hannivoort@interxnl.net> wrote in message
>> news:Xns9516ED7FECD25eejj99@194.109.133.29...
>> > 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)
>>
>>
>
> 


Relevant Pages

  • OT: question about HTTP headers
    ... I also tried installing the Win32 Mozilla in WINE, ... WINE and the site would actually believe that it was a Win32-base browser. ... I used wget to download the two .asp scripts that run when you first bring up the page, but I could not find in the browser identification code where this particular information was pulled from. ...
    (Debian-User)
  • Re: Formatierungsproblem
    ... > Wie soll denn so ein EIN SQL Statement aussehen? ... > IE Schwierigkeiten bei der Darstellung und schließlich auch bei der ... ja nie welchen Browser der User hat, wie er diesen konfiguriert hat usw. ... > Ich sollte wirklich versuchen alles mit ASP zu managen. ...
    (microsoft.public.de.inetserver.iis.asp)
  • w3wp.exe 100% CPU
    ... I'm developing my website with asp with IIS and 2003 server. ... did some test after editing my asp script, my browser just took forever to ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: CSS?
    ... Like I indicated, I don't care what graphical browser a user is using, I want them to see the site ... reason to use CSS. ... ASP can be run on Unix/Linux server using ChiliSoft ASP or similar application, ... To assist you in getting the best answers for FrontPage support see: ...
    (microsoft.public.frontpage.client)
  • Re: IE is not jumping to hash #someanchor in URL
    ... > I noticed that if I place the anchor INSIDE the table, ... the somehow 'forgets' to make the jump. ... If I enable output buffering, ... the browser in one big push. ...
    (alt.html)

Loading