You are correct.
And I apologize , I have too many things cooking at one time.
The way we do this is by a custom state management scheme that saves the
page state before a new page is requested and restores the state every time
the page is requested regardless of POST. Basically before you navigate
away from the page you loop through the controls on the page saving off any
values of interest. And when the page is navigated to you do the same thing
in reverse.
clear as mud right ?
"GHQ Dev" <GH****@discussions.microsoft.com> wrote in message
news:D4**********************************@microsof t.com...
Hello,
there is a big probelm with this solution that I was unable to solve,
Page.LoadPageStateFromPersistenceMedium is called only when the page is
post backed and it is never called when the page is loaded for the first time.
Is there is a way to force LoadPageStateFromPersistenceMedium
to be called each time the page is requested?
Thanks
"gerry" wrote:
check out Page.SavePageStateToPersistenceMedium /
LoadPageStateFromPersistenceMedium
use this to save the viewstate off somewhere ( Session / Cache / DB /
.... ) and reload it as required
"GHQ Dev" <GH****@discussions.microsoft.com> wrote in message
news:D2**********************************@microsof t.com... I have an aspx page (page1.aspx) that post back to another aspx page
(page2.aspx)
"page2.aspx" has a button called back, when the user click on this
button it is supposed to return to "page1.aspx", when the user returns to
"page1.aspx" I want to restore the viewstate of the page so the page would have the
same data as the user left it.
How can I achieve this behavior?
Thanks