I know it happens sometime before Load, but during what event exactly?
6 Answers
It's loaded into memory between init and load. See this article for a full break down of the page lifecycle.

- 32,375
- 22
- 97
- 124
-
3If you need to handle the ViewState in a custom way look up the `LoadViewState` and `SaveViewState` functions. – Adrian Clark Sep 18 '08 at 17:39
I once got into this question too and got my answer from TRULY understanding Viewstate article, which I highly recommend.
After reading it I designed a graphic that helped me to understand better what was happening on between each stage and when and how ViewState was doing its job.
I'd like to share this graphic with other people that (like myself) need to see how stuff work in a more visual way. Hope it helps! :)

- 1,199
- 2
- 12
- 26
That is to say, viewstate is loaded between the OnInit() and OnLoad() events of the page.
My favorite article on dealing with viewstate, which answers every question I have every time: http://weblogs.asp.net/infinitiesloop/archive/2006/08/03/Truly-Understanding-Viewstate.aspx

- 2,061
- 4
- 31
- 47
You can see from the page life cycle as explained on MSDN
That the view state is loaded during the Load phase of the page lifecycle, i.e. the LoadViewState method of the "Page methods" and the LoadViewState
method of the Control methods, above.
The Viewstate is actually loaded in the OnPreLoad event of the page,Just after the Page_InitComplete.

- 1
The viewstate is actually loaded between initComplete and Preload events.Check this for details http://msdn.microsoft.com/en-us/library/ms178472.aspx

- 1