Class ControlUtilities
Inheritance
System.Object
ControlUtilities
Assembly: DotNetNuke.dll
Syntax
public class ControlUtilities : object
Methods
|
Improve this Doc
View Source
FindControl<T>(Control, String, Boolean)
Declaration
public static T FindControl<T>(Control control, string id, bool recursive)
where T : Control
Parameters
| Type |
Name |
Description |
| Control |
control |
|
| System.String |
id |
|
| System.Boolean |
recursive |
|
Returns
Type Parameters
|
Improve this Doc
View Source
FindFirstDescendent<T>(Control, Predicate<Control>)
Declaration
public static T FindFirstDescendent<T>(Control control, Predicate<Control> predicate)
where T : Control
Parameters
| Type |
Name |
Description |
| Control |
control |
|
| Predicate<Control> |
predicate |
|
Returns
Type Parameters
|
Improve this Doc
View Source
FindFirstDescendent<T>(Control)
Declaration
public static T FindFirstDescendent<T>(Control control)
where T : Control
Parameters
| Type |
Name |
Description |
| Control |
control |
|
Returns
Type Parameters
|
Improve this Doc
View Source
FindParentControl<T>(Control)
Declaration
public static T FindParentControl<T>(Control control)
where T : Control
Parameters
| Type |
Name |
Description |
| Control |
control |
|
Returns
Type Parameters
|
Improve this Doc
View Source
LoadControl<T>(TemplateControl, String)
LoadControl loads a control and returns a reference to the control.
Declaration
public static T LoadControl<T>(TemplateControl containerControl, string controlSrc)
where T : Control
Parameters
| Type |
Name |
Description |
| TemplateControl |
containerControl |
The parent Container Control.
|
| System.String |
controlSrc |
The source for the control. This can either be a User Control (.ascx) or a compiled
control.
|
Returns
| Type |
Description |
| T |
A Control of type T.
|
Type Parameters
| Name |
Description |
| T |
The type of control to Load.
|
Extension Methods