EAPCtrlUtilsFindControlRecursive Method |
Recursively search the control hierarchy for the specified control and below for
a control with the specified ID and return that control, if found. If not found,
null is returned.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static Control FindControlRecursive(
this Control root,
string id
)
<ExtensionAttribute>
Public Shared Function FindControlRecursive (
root As Control,
id As String
) As Control
Parameters
- root
- Type: System.Web.UIControl
The root of the control hierarchy to search. - id
- Type: SystemString
The ID of the control for which to search.
Return Value
Type:
ControlThe control, if found, else null.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Control. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also