This documentation is archived and is not being maintained.
IStateManager.TrackViewState Method
.NET Framework 1.1
When implemented by a class, instructs the server control to track changes to its view state.
[Visual Basic] Sub TrackViewState() [C#] void TrackViewState(); [C++] void TrackViewState(); [JScript] function TrackViewState();
Remarks
Once this method has been called on a server control, the IsTrackingViewState property will return true.
Example
[Visual Basic] ' Implement the TrackViewState method for this class by ' calling the TrackViewState method of the class's private ' _viewstate property. Sub TrackViewState() Implements IStateManager.TrackViewState CType(_viewstate, IStateManager).TrackViewState() End Sub 'IStateManager.TrackViewState [C#] // Implement the TrackViewState method for this class by // calling the TrackViewState method of the class's private // _viewstate property. void IStateManager.TrackViewState() { ((IStateManager)_viewstate).TrackViewState(); } [C++] // Implement the TrackViewState method for this class by // calling the TrackViewState method of the class's private // _viewstate property. void IStateManager::TrackViewState() { (dynamic_cast<IStateManager*>(_viewstate))->TrackViewState(); }
[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
IStateManager Interface | IStateManager Members | System.Web.UI Namespace | Introduction to Web Forms State Management | StateBag | StateItem
Show: