WebControl.TrackViewState Method

Definition

Causes the control to track changes to its view state so they can be stored in the object's ViewState property.

protected override void TrackViewState();

Remarks

The TrackViewState method is used primarily by control developers.

The TrackViewState marks the starting point at which to begin tracking and saving changes to the view state for the control. The TrackViewState method is called automatically by ASP.NET when a server control is initialized.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also