Finds the control recursive from child to parent.

Namespace: DotNetNuke.Common
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public static Control FindControlRecursive(
	Control objControl,
	string strControlName
)
Visual Basic
Public Shared Function FindControlRecursive ( 
	objControl As Control,
	strControlName As String
) As Control

Parameters

objControl
Type: System.Web.UI..::..Control
current control.
strControlName
Type: System..::..String
the control name which want to find out.

Return Value

control which'name is strControlName, or else return null if didn't match any control.

See Also