Click or drag to resize

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
)

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: Control
The control, if loaded successfully, else null.
See Also