ViewState not available on Page_Init?

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
 
K

Kevin Spencer

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.
 
C

Craig Buchanan

Kevin-

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

Craig
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top