/// <summary> /// Restores view-state information from a previous request that was saved with the SaveViewState method. /// 并在LoadViewState之前缓存ViewState中所有IStateManager类型项 /// 以及在LoadViewState之后从缓存中恢复将ViewState中ViewSateItemInternal类型项恢复成IStateManager类型项 /// </summary> /// <param name="savedState">表示要还原的控件状态的 Object</param> /// <remarks> /// Restores view-state information from a previous request that was saved with the SaveViewState method. /// 并在LoadViewState之前缓存ViewState中所有IStateManager类型项 /// 以及在LoadViewState之后从缓存中恢复将ViewState中ViewSateItemInternal类型项恢复成IStateManager类型项 ///</remarks> protected override void LoadViewState(object savedState) { base.LoadViewState(savedState); StateBag backState = WebControlUtility.PreLoadViewState(ViewState); WebControlUtility.AfterLoadViewState(ViewState, backState); }