Click or drag to resize
FormControl Class
Form control for the forms.
Inheritance Hierarchy

Namespace: CMS.FormEngine.Web.UI
Assembly: CMS.FormEngine.Web.UI (in CMS.FormEngine.Web.UI.dll) Version: 10.0.0
public class FormControl : CMSDynamicWebControl, 

The FormControl type exposes the following members.

Public methodFormControl
Public propertyAutoPostBack
Gets or sets whether a postback automatically occurs.
Public propertyCssClass
Control CSS class.
Public propertyEditingControl
Editing control.
Public propertyEnabled
Gets or sets state enable.
(Overrides WebControlEnabled.)
Public propertyField
Field name for the inner controls. This property is only supported in templated form.
Public propertyForm
Form where the control is used.
Public propertyFormControlName
Form control name.
Public propertyFormFieldInfo
FormFieldInfo for current control.
Public propertyCheckUnique
If true, the field is checked for uniqueness. This property is only supported in UIForm.
Public propertyInitCompleted
If true, the initialization of the control has already completed and won't repeat. Set to true in your initialization code.
(Inherited from CMSDynamicWebControl.)
Protected propertyInitEarly
If true, the control initializes on BeforeInitComplete, otherwise on InitComplete event.
(Inherited from CMSDynamicWebControl.)
Public propertyIsLiveSite
Indicates if control is used on live site.
Public propertyProperties
Properties definition.
Public propertyShortID
Short ID of the control.
Public propertyStopProcessing
Indicates if processing of the code of this control should continue. It can be used after raising an event.
(Inherited from CMSDynamicWebControl.)
Public propertySupportsDisabledAttribute
Gets a value that indicates whether the control should set the disabled attribute of the rendered HTML element to "disabled" when the control's IsEnabled property is false.
(Overrides WebControlSupportsDisabledAttribute.)
Protected propertyTagKey
TagKey used to render (Div).
(Overrides WebControlTagKey.)
Public propertyText
Gets or sets value converted to string
Public propertyTrim
If true, the value is trimmed. This property is only supported if used inside the form control.
Public propertyUseFFI
Indicates if control should load properties from FormFieldInfo. Default TRUE.
Public propertyValue
Value used for initialization as default value.
Protected methodCreateChildControls
Renders the control at run-time.
(Inherited from CMSDynamicWebControl.)
Protected methodEnsureChildControlControlType
Ensures the first found child control of the given type in the given variable
Protected methodEnsureInitialization
Initializes the control. Is called within InitComplete or
(Inherited from CMSDynamicWebControl.)
Public methodGetValue(String)
Returns the value of the given web part property property.
Public methodGetValueReturnType(String, ReturnType)
Returns the value of the given web part property property.
Protected methodInitializeControl
Loads the form control
(Overrides CMSDynamicWebControlInitializeControl.)
Protected methodLoadViewState
Customized LoadViewState.
(Inherited from CMSDynamicWebControl.)
Protected methodOnInit
Init event handler.
(Inherited from CMSDynamicWebControl.)
Protected methodOnLoad
Load event handler.
(Inherited from CMSDynamicWebControl.)
Protected methodOnPreRender
OnPreRender override.
(Overrides ControlOnPreRender(EventArgs).)
Protected methodPage_InitComplete
Event handler of page's init complete.
(Inherited from CMSDynamicWebControl.)
Public methodReload
Reloads inner controls. Can be used after additional initialization.
Protected methodSaveViewState
Customized SaveViewState.
(Inherited from CMSDynamicWebControl.)
Public methodSetValue
Sets the property value of the control, setting the value affects only local property value.
Extension Methods
Public Extension MethodAddCssClass
Adds CSS class to control. If class is already present, than adding is skipped. Class names are case sensitive.
(Defined by ControlsExtensions.)
Public Extension MethodCallHandled
Calls the method handled by the exception handler. If the call doesn't succeed, the problem is reported through parent IExceptionHandler control instead of throwing unhandled exception for the entire page. Returns true, if the call succeeded, otherwise returns false.
(Defined by ControlsExtensions.)
Public Extension MethodGetCssClasses
Returns all CSS classes of control.
(Defined by ControlsExtensions.)
Public Extension MethodGetRenderedHTML
Returns HTML which would be rendered by control to page.
(Defined by ControlsExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by ControlsExtensions.)
Public Extension MethodHasCssClass
Checks whether the control has given CSS class. Class names are case sensitive.
(Defined by ControlsExtensions.)
Public Extension MethodRemoveCssClass
Removes all occurrences. Class names are case sensitive.
(Defined by ControlsExtensions.)
Public Extension MethodSetCssClasses
Sets CSS classes to the control. Current classes will be overridden.
(Defined by ControlsExtensions.)
See Also
Inheritance Hierarchy