When is the view state available from the .Viewstate property of the control?
After executing the method LoadViewState.
This usually means after the Init phase and before the Load and Handlers phase (e.g. OnClick). But ViewState is really complex, so I highly recommend reading this great article to really understand ViewState.
Since you can override the method LoadViewState, this makes a good place to post any tricks you mentioned:
protected override void LoadViewState(object savedState)
{
base.LoadViewState(savedState);
this.ViewStateLoaded = true;
UpdatePanelVisibility();
}
Of course, this assumes that you are using your own control implementation, which is not always the case.
source
share