472,122 Members | 1,480 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,122 software developers and data experts.

Getting fragment from URL

I have a series of pages I want to put a link on that will allow them
to go back to the page they entered from (the referring URL). The
problem is that to return to the previous page correctly I need the
fragment (page.asp#fragment) along with the referring url. Problem is
that ASP does not seem to provide that. Any advice on how to get the
fragment along with the URL?

For those who might suggest doing a javascript back()... this will not
work since the area people are going into can be a group of pages and
they may click around a few times before wanting to return, so I was
going to save the referring URL when the enter.

Thanks

Sep 29 '07 #1
1 1987
<mi*****@diverge.comwrote in message
news:11**********************@k79g2000hse.googlegr oups.com...
I have a series of pages I want to put a link on that will allow them
to go back to the page they entered from (the referring URL). The
problem is that to return to the previous page correctly I need the
fragment (page.asp#fragment) along with the referring url. Problem is
that ASP does not seem to provide that. Any advice on how to get the
fragment along with the URL?

For those who might suggest doing a javascript back()... this will not
work since the area people are going into can be a group of pages and
they may click around a few times before wanting to return, so I was
going to save the referring URL when the enter.
Are the pages they come from under your control and are they ASP
pages? If so then you could use Session variables when the page
is entered and refer to that when wanting to return to it. Perhaps:

<%
Session("Last_Page") = Session("This_Page")
Session("This_Page") = Request.ServerVariable("URL")
&>

<a href="<%=Session("Last_Page")%>">Last Page</a>
Sep 29 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Stuart Baker | last post: by
2 posts views Thread by Patrik Carlsson | last post: by
6 posts views Thread by Michael Hamm | last post: by
17 posts views Thread by Howard Kaikow | last post: by
2 posts views Thread by Yuriy | last post: by
3 posts views Thread by Gustaf | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.