Searches control hierarchy from top down to find a control matching the passed in name

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

Syntax

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

Parameters

objParent
Type: System.Web.UI..::..Control
Root control to begin searching
strControlName
Type: System..::..String
Name of control to look for

Return Value

returnsM:DotNetNuke.Common.Globals.FindControlRecursiveDown(System.Web.UI.Control,System.String)

Remarks

This differs from FindControlRecursive in that it looks down the control hierarchy, whereas, the FindControlRecursive starts at the passed in control and walks the tree up. Therefore, this function is more a expensive task.

See Also