FormUserControlLoaderLoadFormControl Method |
Loads the given form control from its definition.
Namespace: CMS.FormEngine.Web.UIAssembly: CMS.FormEngine.Web.UI (in CMS.FormEngine.Web.UI.dll) Version: 12.0.0
Syntaxpublic 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.FormEngine.Web.UIBasicForm
Form - loadDefaultProperties (Optional)
- Type: SystemBoolean
If true, the default properties for the control are set
Return Value
Type:
FormEngineUserControl
Exceptions
See Also