This is a migrated thread and some comments may be shown as answers.

RadAjaxManager, IE and the Back Button

1 Answer 96 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Bill
Top achievements
Rank 1
Bill asked on 12 Nov 2012, 09:54 PM
Hi,

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?


Thanks,
Bill

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 15 Nov 2012, 04:16 PM
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,

Pavlina
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.
Tags
Ajax
Asked by
Bill
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or