System.Web.UI.WebControls.TreeView.TrackViewState Method

Tracks view-state changes to the System.Web.UI.WebControls.TreeView control so that they can be stored in the System.Web.UI.StateBag object for the control. This System.Web.UI.StateBag is accessible through the System.Web.UI.Control.ViewState property.

Syntax

protected override void TrackViewState ()

Remarks

The TreeView.TrackViewState method is overridden to mark the starting point to begin tracking and saving changes to the control as part of the view state for the control.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0