예제 #1
0
 /// <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);
     }
 }
예제 #2
0
        /// <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;
                }
            }
        }