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

Enable History on back and forword

1 Answer 63 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Amjad
Top achievements
Rank 1
Amjad asked on 06 Feb 2012, 04:27 PM

Hello;

As I have been looking for multiple articles on saving history when performing partial postbackand then pressing back / forword buttons the state of the form reset , most of the examples make ajax request on the same page.

We are using telerik controls 2011 Q3

In my case; we redirect to anther page (as shown in the link below ) sample project and then when we press back button the form is empty or gets loaded like a new request.

Please find the attached project and advise

Appreciated

Thanks 

http://www.MegaShare.com/3866440

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 08 Feb 2012, 10:55 AM
Hi Amjad,

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. However, you can enable the browser back and forward buttons by enabling history through the ScriptManager on the page.

For more inormation about browsers history with Ajax you can check out the below articles:
http://www.telerik.com/help/aspnet-ajax/ajax-back-forward-btns.html
http://dotnetslackers.com/articles/aspnet/AFirstLookAtASPNETExtensions35HistoryPoints.aspx
http://msdn.microsoft.com/en-us/library/cc488548.aspx
http://stackoverflow.com/questions/1225289/back-button-functionality-to-webpage-with-form-and-search-result-ajax-asp-net

All the best, Pavlina
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Ajax
Asked by
Amjad
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or