System.Web.UI.WebControls.RadioButtonList.FindControl Method

Searches the current naming container for a server control with the specified ID and path offset. The RadioButtonList.FindControl(string, int) method always returns the System.Web.UI.WebControls.RadioButtonList 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.RadioButtonList.

Remarks

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

The RadioButtonList.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: 2.0.0.0