/// <devdoc> /// <para>Restores view-state information that was saved by SaveViewState.</para> /// </devdoc> protected virtual void LoadViewState(object savedState) { if (savedState != null) { ViewState.LoadViewState(savedState); } }
/// <devdoc> /// Load the previously saved state. /// </devdoc> protected internal void LoadViewState(object state) { if (state != null && ownStateBag) { ViewState.LoadViewState(state); } if (statebag != null) { object o = ViewState[SetBitsKey]; if (o != null) { markedBits = (int)o; // markedBits indicates properties that got reloaded into // view state, so update setBits, to indicate these // properties are set as well. setBits |= markedBits; } } }