AJAX Control - Forward and Backward Navigation - IE6 & IE7

Last post 10-09-2007 12:35 PM by DisturbedBuddha. 3 replies.

Sort Posts:

  • AJAX Control - Forward and Backward Navigation - IE6 & IE7

    10-09-2007, 9:35 AM
    • Member
      17 point Member
    • anthonyhook
    • Member since 09-16-2007, 2:01 PM
    • Posts 38

    Hi

    I have "AJAX Enabled" certain parts of my web app.

    It is the sorting functionality of a XML results populated repeater. I have two of them on the page and the work in the browser blindingly well!

    However there is a problem (Isn't thier always!)...

    When you browser to the page and the repeaters are populated, if you click "Select" to move onto the next page without doing any sorting of the results and then click the "Back to results" button it works fine.

    But, when you do the same thing, yet sort the results (therefore triggering the AJAX postback to get the other results) and then click select and go back, it then hangs and seems to try to re-bind the page.

    Am i missing something obvious for a start?

    I know code examples will help, but does this spring anything to mind?

    Regards
    Anthony

    Anthony Hook
    Web Developer
    www.packyourbags.com
  • Re: AJAX Control - Forward and Backward Navigation - IE6 & IE7

    10-09-2007, 11:12 AM

    You said it yourself. Sorting triggers a postback, adding another entry to your browser's history.  Therefore, when you hit back, it's going to navigate to the same page your on.  Hitting back a second time would take you to the page you came from.

     Microsoft recommends the following work-arounds (see the section "How to retain only the most recent Web page state in the Web browser history folder"):

    http://support.microsoft.com/kb/913721

    When you ask a question, remember to click "mark as answered" when you get a reply which answers your question.


    My latest ASP.NET AJAX blog entries.
  • Re: AJAX Control - Forward and Backward Navigation - IE6 & IE7

    10-09-2007, 12:08 PM
    • Member
      17 point Member
    • anthonyhook
    • Member since 09-16-2007, 2:01 PM
    • Posts 38

    I'm not sure you understood me their,

    When i goto "Page 2 of 4" in my paging, which is displayed using AJAX (Partial page update). And then try and navigate back to that page it rebinds the entire page and returns back to page 1 of 4. It also doesnt happen instantly it actually re-calls all the page functions previously loaded when the i went from my search form to the results page. This is not how i want it to work. It works, providing you dont use the paging or sorting controls.

    Anthony

     

    Anthony Hook
    Web Developer
    www.packyourbags.com
  • Re: AJAX Control - Forward and Backward Navigation - IE6 & IE7

    10-09-2007, 12:35 PM

    Okay, so you are navigating to a details page and upon returning to the 1st page, it's reset itself, right?  Can u provide your source code?

    When you ask a question, remember to click "mark as answered" when you get a reply which answers your question.


    My latest ASP.NET AJAX blog entries.
Page 1 of 1 (4 items)