Forum Moderators: open

Message Too Old, No Replies

link to anchor on another page while passing url variable

         

MaximusB

11:33 pm on Mar 18, 2005 (gmt 0)

10+ Year Member



I guess this is a little bit of an asp question, but it pertains heavily to HTML as well. I want to create a link to an anchor on another page. The URL of the page I want to link to (and that contains the anchor) has a variable passed with it... ie.
[mypage.asp?cid=1-12...]

Can I create a link to an achor with this type of url?

tedster

9:12 am on Mar 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes you can - according to this thread [webmasterworld.com] from last summer, the named anchor identifier should be the last item in the url:

http://mypage.asp?cid=1-12#spot

I've heard that some browsers can also work with a named anchor identifier that precedes the query string - but I've never tested that. I also have read that the "correct" approach above can cause backend problems on an ASP page. That is, the name/value pair of the querystring gets picked up as cid=1-12#spot, and not simply cid=1-12.

Since there's really only two options, if you test this I'd like to hear your report on what works for you.