Expand Minimize
This topic has not yet been rated - Rate this topic

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)
[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.Control
The first control in the control tree that matches the specified type.
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.