[]
Finds the control.
public static Control FindControl(Control control, string controlID)
Public Shared Function FindControl(control As Control, controlID As String) As Control
Type | Description |
---|---|
Control |
Searches the current naming container for a server control with the specified id and integer, specified in the pathOffset parameter, which aids in the search. You should not override this version of the Overload:System.Web.UI.Control.FindControl method.
protected override Control FindControl(string id, int pathOffset)
Protected Overrides Function FindControl(id As String, pathOffset As Integer) As Control
Type | Name | Description |
---|---|---|
string | id | The identifier for the control to be found. |
int | pathOffset | The number of controls up the page control hierarchy needed to reach a naming container. |
Type | Description |
---|---|
Control | The specified control, or null if the specified control does not exist. |