ViewState not available on Page_Init?

  • Thread starter Thread starter Craig Buchanan
  • Start date Start date
C

Craig Buchanan

If I set a ViewState variable in the page_load event, then try to access
that same ViewState variable in the Page_Init event *after* a postback, the
variable's value is different. I only set it in this one place.

What is happening?

Thanks,

Craig Buchanan
 
The LoadViewState Event occurs just after the Init Event. You want to access
it in some later Event. Shouldn't be hard, as the Init and LoadViewState are
the first 2.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
Kevin-

Thanks for the response. Why don't I see the LoadViewState event in the
page event list?

Craig
 
Back
Top