With a DataList that may be the best option, but with other controls such a
technique may be irritating and cumbersome. On the form, for example I have
labels whose values change to reflect UI state (e.g., whether the record
being represented is "dirty"). For example (using the "dirty" scenario), the
Page_Load sets the label's text to "Unmodified," but when the contents of
any control on the form are changed, the label is changed to "Modified." In
such a case it would be far more convenient to merely "thaw," as you say,
the ViewState, rather than have to analyse the record for changes upon
redirection from the login page. This is particularly true as I would like
to implement a generic means of maintaining state through a Session Timeout
(i.e., on this page I have a "dirty" label, but elsewhere what needs to be
preserved will be entirely different, and I don't want to have to implement
custom rehydration code for every page).
Thanks,
--kaburke
"jasonkester" <> wrote in message
news: ups.com...
> Coming back from the login page, you'll need to give yourself enough
> information to pull the page context out of temporary storage, right?
> Since you've already got a branch set up to put the fields back in
> place, why not repopulate and rebind at the same time? Unless your
> DataList is particularly expensive to rebuild, I don't see much value
> in trying to freeze & thaw the ViewState.
>
> Jason Kester
> Expat Software Consulting Services
> http://www.expatsoftware.com/
>