Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Accessing bookmark?

Reply
Thread Tools

Accessing bookmark?

 
 
Robert Mark Bram
Guest
Posts: n/a
 
      10-20-2004
Hi All!

How do you get the bookmark on the end of a url with ASP?

For example, this page from 4GuysFromRolla:
http://www.4guysfromrolla.com/demos/...les.asp#blobby

"blobby" doesn't pop up anywhere in Request.Variables..

The next question would be how can I add a bookmark in ASP too..

Rob

 
Reply With Quote
 
 
 
 
Andy Dingley
Guest
Posts: n/a
 
      10-20-2004
On Wed, 20 Oct 2004 21:51:23 +1000, Robert Mark Bram
<> wrote:

>How do you get the bookmark on the end of a url with ASP?
>
>For example, this page from 4GuysFromRolla:
>http://www.4guysfromrolla.com/demos/...les.asp#blobby
>
>"blobby" doesn't pop up anywhere in Request.Variables..


That's not a bookmark, it;'s a "fragment identifer".

In your ASP, get the whole URL and then slice the string up yourself.
Use a regex to look at characters after the hash.


_IF_ the user has navigated from an internal link on the page
http://www.4guysfromrolla.com/demos/servervariables.asp
to
http://www.4guysfromrolla.com/demos/...les.asp#blobby

then the browser probably won't re-load the page and the server never
gets to see this request.

If they'd arrived there from the page
http://www.4guysfromrolla.com/demos/foo.htm
then the server would see the full request.


 
Reply With Quote
 
 
 
 
relaxedrob@optushome.com.au
Guest
Posts: n/a
 
      10-21-2004
Hi Andrew,

Thank you for your reply - Andy and Miranda too!

> > How do you get the bookmark on the end of a url with ASP?


> If the HTTP client submits the fragment identifier to the server, the
> client is broken - at least that's my interpretation of RFC1630, page
> 13. ASP (or any other server-side language) is unable to retrieve the
> anchor reference as it's not sent with the request to the server. Mind
> you, it is a handy way to block dumb web crawlers that try to send it
> anyway.


This answers my question. Oh well. I will find a different way.
Thank you very much!

Rob

 
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
Who is accessing my WLAN? =?Utf-8?B?SmFtZXM=?= Wireless Networking 4 03-01-2005 05:09 PM
accessing other computer via wireless =?Utf-8?B?Sm9zaDE1OQ==?= Wireless Networking 1 09-21-2004 10:06 PM
Re: Accessing applications on each computer using wireless networking Pavel A. Wireless Networking 1 09-15-2004 01:55 PM
Re: Accessing applications on each computer using wireless networking Jeff Durham Wireless Networking 0 09-15-2004 02:18 AM
RE: Accessing applications on each computer using wireless networking =?Utf-8?B?bW8=?= Wireless Networking 0 09-14-2004 10:27 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