In
Page_InitComplete
, my understanding is that the
ViewState
is not actually there for you to manipulate. Rather than manipulate the ViewState like this, you would be better overriding the
SaveViewState
method like this:
protected override object SaveViewState()
{
object[] vs = new object[2];
vs[0] = base.SaveViewState();
vs[1] = _somethingToSave;
return vs;
}