protected internal virtual void TrackViewState() { if (ownStateBag) { ViewState.TrackViewState(); } marked = true; }
/// <summary> /// Causes the control to track changes to its view state so they can be stored in the object's ViewState property /// 并将ViewState中所有IStateManager类型项标记为TrackViewState /// </summary> protected override void TrackViewState() { base.TrackViewState(); ViewState.TrackViewState(); }
/// <internalonly/> void IStateManager.TrackViewState() { _isTracking = true; ViewState.TrackViewState(); }