System.Web.UI.WebControls.DataBoundControl.MarkAsDataBound Method

Sets the state of the control in view state as successfully bound to data.

Syntax

protected void MarkAsDataBound ()

Remarks

The data-bound control maintains a value in view state that indicates whether it is currently bound to data. The DataBoundControl.MarkAsDataBound method sets the value to true.

Requirements

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