SPUtility.GetParentControl method
SharePoint 2013
Returns the control that is the parent of a specified control.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedExternalType)] 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.ControlThe first control in the control tree that matches the specified type.