RadAjaxManager, IE and the Back Button

2 posts, 0 answers
  1. Bill
    Bill avatar
    4 posts
    Member since:
    Oct 2012

    Posted 12 Nov 2012 Link to this post


    I've got a RadAJAXManager on my page to manage the AJAX requests and I think it's affecting how the page maintains values in internet explorer.

    When the user submits the page and then hits the back button, the values of all the fields (standard asp TextBoxes) are lost.
    If I disable AJAX, the values are maintained. I guess this is because the submit button is ajax'ed and the navigation is triggered during a serverside function using response.redirect? Not sure why it would work fine in other browsers though. 

    Note that this only affects Internet Explorer, the other browsers keep the values with no issues. 

    Any Ideas?

  2. Pavlina
    Pavlina avatar
    6187 posts

    Posted 15 Nov 2012 Link to this post

    Hi Bill,

    The problem is due to a well known disadvantage of MS AJAX that it could not work properly with history.back() and breaks the back button functionality of the browser. The browser Back and Forward functionality is only available when a full postback has occurred and that is the reason for them not to remember the last page state after ajax request. You can also refer to this help article for more information about browsers history with Ajax.

    However, in order to enable browser back and forward buttons with ajax you can use the ScriptManager History points for that purpose as demonstrated in the attached project.

    All the best,

    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top