By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,312 Members | 1,280 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,312 IT Pros & Developers. It's quick & easy.

saving/loading state of page

P: n/a
I've been reading about saving the state of the controls of a page so
the user can be redirected to another page and then return to the
original in the state it was in when they left. I've seen a lot of
conflicting answers on the subject.

Some people say that you can use the
LoadPageStateFromPersistenceMedium() and
SavePageStateToPersistenceMedium() functions to do this, but they
don't say how to get around the problem that the
LoadPageStateFromPersistenceMedium() function doesn't get called on
non-postback page loads.

Other people seem to be saying that trying to use these functions to
save the ViewState in the Session variable is not the way ViewState
was meant to be used and is a bad idea.

How can I save the state of the page? Do I have to save some kind of
hashtable in the Session object that contains all the controls on the
page and their corresponding values? Seems like a lot of work and
difficult to maintain. This must be a common problem that has a
well-known solution right?

Thanks,
Dave
Nov 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.