Enable History on back and forword

2 posts, 0 answers
  1. Amjad
    Amjad avatar
    36 posts
    Member since:
    Dec 2010

    Posted 06 Feb 2012 Link to this post

    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

  2. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 08 Feb 2012 Link to this post

    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 >>
Back to Top