By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,930 Members | 1,424 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,930 IT Pros & Developers. It's quick & easy.

Getting fragment from URL

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
<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.