javascript - Maintain previous Page values and selected controls states on Browser back button click -
i'have developed asp.net project in .net 4.0, fine, except when user clicks browser button, old page loosing control's selected states (eg checkboxlist, dropdownlist etc.) and values entered in textboxes.
"i tried resolved putting session variables, before redirect i'm saving in session and, when user goes previous page, i'm validating session state , rebinding everything. seems costly operations."
is there other/near-around solution.
(please note i'm using ajax componets , update panels.)
thanks in advance...
you can save form state using cookies , reading them again after detecting history.back or alternatively please check jquery plugin http://tkyk.github.io/jquery-history-plugin/#documentation
Comments
Post a Comment