I have a page with a quick nav due to its length. The following link works well:
http://localhost/MHQ-MC/fics.asp?gid=2#risk160
The page scrolls to the location of the anchor named the same. However for other reasons I wish to execute this URL using a response.redirect and are having troubles I believe because of the #
EG:
goToRisk = "fics.asp?gid=" & trim(request("gId")) & "#risk" & session("TempRID")
response.redirect(goToRisk)
FYI: goToRisk printed to the browser shows:
http://localhost/MHQ-MC/fics.asp?gid=2#risk160
Once the code is executed (the redirect) the address in the browser is:
http://localhost/MHQ-MC/fics.asp?gid=2#
This gives a 404 error of course. However if I append the 'risk160' it hits the in page anchor as it should. Any ideas about this?
Based on:
http://www.blooberry.com/indexdot/ht...rlencoding.htm
I have tried encoding the using char(23),char(25),#035; and # EG:
goToRisk = "fics.asp?gid=" & trim(request("gId")) & char(23) & "risk" &...
still no luck, same result...
Them I found this site which has an encoder and decoder:
http://www.auditmypc.com/html-encoder.asp
So I paste in the URL:
http://localhost/MHQ-MC/fics.asp?gid=2#risk160
Which gives me this:
http%3A%2F%2Flocalhost%2FMHQ%2DMC%2Ffics%2Easp%3Fg id%3D2%23risk160
This also failed. Any ideas would be appreciated
TYIA
Wind is your friend
Matt