/// <include file='doc\Style.uex' path='docs/doc[@for="Style.SaveViewState"]/*' /> /// <devdoc> /// <para>A protected method. Saves any state that has been modified /// after the TrackViewState method was invoked.</para> /// </devdoc> protected internal virtual object SaveViewState() { if (statebag != null) { if (markedBits != 0) { // new bits or properties were changed // updating the state bag at this point will automatically mark // SetBitsKey as dirty, and it will be added to the resulting viewstate ViewState[SetBitsKey] = markedBits; } if (ownStateBag) { return(ViewState.SaveViewState()); } } return(null); }
protected virtual object SaveViewState() { return(ViewState.SaveViewState()); }