Click or drag to resize
FormControlsHelperLoadFormControl Method
Loads the given form control from its definition.

Namespace: CMS.FormControls
Assembly: CMS.FormControls (in CMS.FormControls.dll) Version: 9.0.0
Syntax
C#
public static FormEngineUserControl LoadFormControl(
	Page page,
	string controlName,
	string fieldName,
	BasicForm form = null,
	bool loadDefaultProperties = true
)

Parameters

page
Type: System.Web.UIPage
Page where the form control should be loaded
controlName
Type: SystemString
Form control code name
fieldName
Type: SystemString
Field name
form (Optional)
Type: CMS.FormControlsBasicForm
Form
loadDefaultProperties (Optional)
Type: SystemBoolean
If true, the default properties for the control are set

Return Value

Type: FormEngineUserControl
See Also