Hi folks. I'm having trouble getting a named anchor from a url, i.e. the bit after the hash symbol in
http://www.myurl.com#namedAnchor without using JavaScript (as I want things to work for people with scripting turned off). It doesn't seem to show up in any of the server variables I'm aware of. I've tried such things as the following:
Request.ServerVariables("S
CRIPT_NAME
")
Request.ServerVariables("U
RL")
Request.ServerVariables("Q
UERY_STRIN
G")
Request.RawUrl
Even if I examine everything returned by Request.ServerVaraibles I can't find can find any reference to "#namedAnchor".
I gather that means that I can't get the named anchor using ServerVariables (I suppose because it's not a server variable). Is that true? Is there some other way of getting the named anchor without having to use JavaScript?
Start Free Trial