473,386 Members | 1,908 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

dynamic back link

Hi there,

I'm trying to figure out how to create myself a "Back" link in a
ASP.NET 2.0 application that will handle my cases. What I have is a
page that has multiple pages that it can be entered from, and will have
internal post-backs as well (rendering the option to use the browsers
back option useless).

For example, my target page may be a page containing details about a
product. The page can be loaded either from a list of results from a
product search, or opened from a user clicking on that product from a
list of products in sales order, etc.

What I need is to be able to figure out how to get the user back to the
page that they came from, and restore the state that previous page was
in when they left (i.e. the list of search results and search
conditions are still visible).

Any suggestions on where I can start with this?

Nov 9 '06 #1
2 1693
You may want to look into using the new SiteMapPath control.

http://msdn2.microsoft.com/en-us/library/x20z8c51.aspx

"emorgoch" wrote:
Hi there,

I'm trying to figure out how to create myself a "Back" link in a
ASP.NET 2.0 application that will handle my cases. What I have is a
page that has multiple pages that it can be entered from, and will have
internal post-backs as well (rendering the option to use the browsers
back option useless).

For example, my target page may be a page containing details about a
product. The page can be loaded either from a list of results from a
product search, or opened from a user clicking on that product from a
list of products in sales order, etc.

What I need is to be able to figure out how to get the user back to the
page that they came from, and restore the state that previous page was
in when they left (i.e. the list of search results and search
conditions are still visible).

Any suggestions on where I can start with this?

Nov 9 '06 #2
Hi,

I think you can create a simple module which will save current and
previous URLs in the session. So you will know from which URL user came
to the current page and can redirect him back.

Alexander Kleshchevnikov
www.klalex.com
"""emorgoch ΠΙΣΑΜ(Α):
"""
Hi there,

I'm trying to figure out how to create myself a "Back" link in a
ASP.NET 2.0 application that will handle my cases. What I have is a
page that has multiple pages that it can be entered from, and will have
internal post-backs as well (rendering the option to use the browsers
back option useless).

For example, my target page may be a page containing details about a
product. The page can be loaded either from a list of results from a
product search, or opened from a user clicking on that product from a
list of products in sales order, etc.

What I need is to be able to figure out how to get the user back to the
page that they came from, and restore the state that previous page was
in when they left (i.e. the list of search results and search
conditions are still visible).

Any suggestions on where I can start with this?
Nov 9 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: C White | last post by:
I'm trying to write an asp script that will create a series of drop lists based on a table like: canada ontario toronto street name link canada ontario toronto road...
9
by: Gibby Koldenhof | last post by:
Hiya, Terrible subject but I haven't got a better term at the moment. I've been building up my own library of functionality (all nice conforming ISO C) for over 6 years and decided to adopt a...
1
by: darrel | last post by:
I have a form that has a 'sub-form' in it that updates a separate table. I can easily add records to this table from within this page. To delete, though, I've been redirecting to a different...
3
by: WebBuilder451 | last post by:
I have a series of dynamic link buttons created based upon a datareader. I've added a click event and it calls the sub ok: example: "while loop through the reader" Dim ltrCtrl As New...
4
by: Larry Grady | last post by:
Anyone up for a challenge? I've been struggling with this for a few days and was hoping someone could help me. Pouring through all the messageboards I just can't find the solution. We have a...
5
by: pittendrigh | last post by:
There must be millions of dynamically generated html pages out there now, built by on-the-fly php code (and jsp, perl cgi, asp, etc). Programatic page generation is transparently useful. But...
0
by: Tony Hedge | last post by:
Okay I'm back with another issue ;-) Platform is .NET, VB 2005... I created a templace class that I was successfully able to add as a template column to a GridView control - dynamically!!! So...
5
by: Matt | last post by:
Creating Dynamic aspnet link buttons with in user control, Then i use the control on ever page with wraped with master page. I get the url of the link buttons from xml. Parameter from xml also...
12
by: Lazoris | last post by:
OK heres a newb question and I'm sorry for it, but im getting back into web design after like 5 years off and im stuck even though i should know the problem i cant seem to correct it atm. What I'm...
5
hsriat
by: hsriat | last post by:
I add a link on the onload event of the body. The link is displayed as BACK if the page is opened from another page, but if the page is opened in a new window, its displayed as CLOSE Here's the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.