System.Web.UI.WebControls.CheckBoxList.FindControl Method

Searches the current naming container for a server control with the specified ID and path offset. The CheckBoxList.FindControl(string, int) method always returns the System.Web.UI.WebControls.CheckBoxList object.

Syntax

protected override System.Web.UI.Control FindControl (string id, int pathOffset)

Parameters

id
The identifier for the control to find.
pathOffset
The number of controls up the page control hierarchy needed to reach a naming container.

Returns

The current System.Web.UI.WebControls.CheckBoxList.

Remarks

The CheckBoxList.FindControl(string, int) method is used primarily by control developers in custom controls that derive from the System.Web.UI.WebControls.CheckBoxList class.

The CheckBoxList.FindControl(string, int) method overrides the System.Web.UI.Control.FindControl(string, int) method of the base System.Web.UI.Control class. You should not override this version of the System.Web.UI.Control.FindControl(string, int) method.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0