Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

SPUtility.GetParentControl method

Returns the control that is the parent of a specified control.

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

public static Control GetParentControl(
	Control control,
	Type type
)

Parameters

control
Type: System.Web.UI.Control

The child control.

type
Type: System.Type

The type of the parent control.

Return value

Type: System.Web.UI.Control
The first control in the control tree that matches the specified type.
Show:
© 2015 Microsoft