FormControl Class |
Namespace: CMS.FormEngine.Web.UI
public class FormControl : CMSDynamicWebControl, INamingContainer
The FormControl type exposes the following members.
Name | Description | |
---|---|---|
FormControl |
Name | Description | |
---|---|---|
AutoPostBack |
Gets or sets whether a postback automatically occurs.
| |
CheckUnique |
If true, the field is checked for uniqueness. This property is only supported in UIForm.
| |
CssClass |
Control CSS class.
| |
EditingControl |
Editing control.
| |
Enabled |
Gets or sets state enable.
(Overrides WebControlEnabled.) | |
Field |
Field name for the inner controls. This property is only supported in templated form.
| |
Form |
Form where the control is used.
| |
FormControlName |
Form control name.
| |
FormFieldInfo |
FormFieldInfo for current control.
| |
InitCompleted |
If true, the initialization of the control has already completed and won't repeat. Set to true in your initialization code.
(Inherited from CMSDynamicWebControl.) | |
InitEarly |
If true, the control initializes on BeforeInitComplete, otherwise on InitComplete event.
(Inherited from CMSDynamicWebControl.) | |
IsLiveSite |
Indicates if control is used on live site.
| |
Properties |
Properties definition.
| |
ShortID |
Short ID of the control.
| |
StopProcessing |
Indicates if processing of the code of this control should continue. It can be used after raising an event.
(Inherited from CMSDynamicWebControl.) | |
SupportsDisabledAttribute |
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.) | |
TagKey |
TagKey used to render (Div).
(Overrides WebControlTagKey.) | |
Text |
Gets or sets value converted to string
| |
Trim |
If true, the value is trimmed. This property is only supported if used inside the form control.
| |
UseFFI |
Indicates if control should load properties from FormFieldInfo. Default TRUE.
| |
Value |
Value used for initialization as default value.
|
Name | Description | |
---|---|---|
CreateChildControls |
Renders the control at run-time.
(Inherited from CMSDynamicWebControl.) | |
EnsureChildControlControlType |
Ensures the first found child control of the given type in the given variable
| |
EnsureInitialization |
Initializes the control. Is called within InitComplete or
(Inherited from CMSDynamicWebControl.) | |
GetValue(String) |
Returns the value of the given web part property property.
| |
GetValueReturnType(String, ReturnType) |
Returns the value of the given web part property property.
| |
InitializeControl |
Loads the form control
(Overrides CMSDynamicWebControlInitializeControl.) | |
LoadViewState |
Customized LoadViewState.
(Inherited from CMSDynamicWebControl.) | |
OnInit |
Init event handler.
(Inherited from CMSDynamicWebControl.) | |
OnLoad |
Load event handler.
(Inherited from CMSDynamicWebControl.) | |
OnPreRender |
OnPreRender override.
(Overrides ControlOnPreRender(EventArgs).) | |
Page_InitComplete |
Event handler of page's init complete.
(Inherited from CMSDynamicWebControl.) | |
Reload |
Reloads inner controls. Can be used after additional initialization.
| |
SaveViewState |
Customized SaveViewState.
(Inherited from CMSDynamicWebControl.) | |
SetValue |
Sets the property value of the control, setting the value affects only local property value.
|
Name | Description | |
---|---|---|
AddCssClass |
Adds CSS class to control. If class is already present, than adding is skipped. Class names are case sensitive.
(Defined by ControlsExtensions.) | |
CallHandled |
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.) | |
GetCssClasses |
Returns all CSS classes of control.
(Defined by ControlsExtensions.) | |
GetRenderedHTML |
Returns HTML which would be rendered by control to page.
(Defined by ControlsExtensions.) | |
GetString |
Gets the string by the specified resource key
(Defined by ControlsExtensions.) | |
HasCssClass |
Checks whether the control has given CSS class. Class names are case sensitive.
(Defined by ControlsExtensions.) | |
RemoveCssClass |
Removes all occurrences. Class names are case sensitive.
(Defined by ControlsExtensions.) | |
SetCssClasses |
Sets CSS classes to the control. Current classes will be overridden.
(Defined by ControlsExtensions.) |