EAPCtrlUtilsLoadControl Method |
Load a user control.
Depending on the options provided this method may throw an error or simply return null if the control cannot be loaded.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static Control LoadControl(
Page page,
string logicalPath,
ComponentLoadOptions options,
Control host = null
)
Public Shared Function LoadControl (
page As Page,
logicalPath As String,
options As ComponentLoadOptions,
Optional host As Control = Nothing
) As Control
Parameters
- page
- Type: System.Web.UIPage
The current page. - logicalPath
- Type: SystemString
The logical path to the user control (.ascx) file. - options
- Type: NetQuarryComponentLoadOptions
Options for loading the control. - host (Optional)
- Type: System.Web.UIControl
Optional control to which the loaded control should be added as a child.
Return Value
Type:
ControlThe control, if loaded successfully, else null.
See Also