I have a page with a quick nav due to its length. The following link works well:
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 #
goToRisk = "fics.asp?gid=" & trim(request("gId")) & "#risk" & session("TempRID")
FYI: goToRisk printed to the browser shows:
Once the code is executed (the redirect) the address in the browser is:
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?
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:
So I paste in the URL:
Which gives me this:
This also failed. Any ideas would be appreciated
Wind is your friend