dynamic back link

Discussion in 'ASP .Net' started by emorgoch, Nov 9, 2006.

  1. emorgoch

    emorgoch Guest

    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?
     
    emorgoch, Nov 9, 2006
    #1
    1. Advertisements

  2. 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?
    >
    >
     
    =?Utf-8?B?TWlrZQ==?=, Nov 9, 2006
    #2
    1. Advertisements

  3. emorgoch

    seigo Guest

    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?
     
    seigo, Nov 9, 2006
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Joby
    Replies:
    0
    Views:
    1,834
  2. sylvia sil
    Replies:
    1
    Views:
    829
    Curt_C [MVP]
    Dec 29, 2004
  3. darrel
    Replies:
    1
    Views:
    542
    MWells
    Jan 28, 2005
  4. =?Utf-8?B?Z29yaWxsYQ==?=
    Replies:
    1
    Views:
    1,006
    Masudur
    May 25, 2007
  5. Author
    Replies:
    6
    Views:
    3,595
    George
    Jan 22, 2009
  6. martin

    Reading a file twice, back to back ?

    martin, Apr 16, 2006, in forum: Perl Misc
    Replies:
    16
    Views:
    327
  7. Bruno

    Back (history.back()) after refresh

    Bruno, May 29, 2006, in forum: Javascript
    Replies:
    2
    Views:
    483
    Bruno Lopes
    May 30, 2006
  8. Useful Info

    Firefox back button takes me back 2 pages.

    Useful Info, Jun 3, 2007, in forum: Javascript
    Replies:
    0
    Views:
    497
    Useful Info
    Jun 3, 2007
Loading...