Export (0) Print
Expand All
Expand Minimize

DataFormWebPart.FindControlInNamingContainerStack method

Finds the specified control in a stack of NamingContainer objects.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public static Control FindControlInNamingContainerStack(
	Control control,
	string controlId
)

Parameters

control
Type: System.Web.UI.Control
controlId
Type: System.String

Return value

Type: System.Web.UI.Control

Walks up the stack of NamingContainer objects starting at control to find a control that has the ID controlId. If control is itself an INamingContainer object, the search begins with the control; otherwise, the search begins with control.NamingContainer.

Show:
© 2014 Microsoft