Click or drag to resize
ControlsHelperGetChildControlChildType Method (Control, Boolean)
Gets the first child control of specified type for given control.

Namespace: CMS.Base.Web.UI
Assembly: CMS.Base.Web.UI (in CMS.Base.Web.UI.dll) Version: 11.0.0
Syntax
C#
public static ChildType GetChildControl<ChildType>(
	Control control,
	bool ensureChildControls = true
)
where ChildType : Control

Parameters

control
Type: System.Web.UIControl
Control
ensureChildControls (Optional)
Type: SystemBoolean
Indicates whether child controls should be ensured when looking for a given control

Type Parameters

ChildType

Return Value

Type: ChildType
See Also