Class PropertyTextBoxControlBase
Base control that creates a user interface for editing in a textbox.
Inheritance
Inherited Members
Namespace: EPiServer.Web.PropertyControls
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7Syntax
public abstract class PropertyTextBoxControlBase : PropertyDataControl, IPropertyControl, INamingContainer, IRenderSettings
Constructors
PropertyTextBoxControlBase()
Creates instance of PropertyTextBoxControlBase with default maxLength of 255
Declaration
protected PropertyTextBoxControlBase()
PropertyTextBoxControlBase(Int32)
Creates instance of PropertyTextBoxControlBase with given maxLength of the textbox
Declaration
protected PropertyTextBoxControlBase(int maxLength)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | maxLength | Specifies the maximum length of the textbox. 0 or negative value means no max length for the textbox |
Properties
EditControl
Gets or sets the control used to edit the property.
Declaration
protected TextBox EditControl { get; set; }
Property Value
Type | Description |
---|---|
System.Web.UI.WebControls.TextBox | The control used to edit the property. |
SupportsOnPageEdit
Gets a value indicating whether this control supports "on page edit".
Declaration
public override bool SupportsOnPageEdit { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Overrides
Remarks
The default behaviour for controls that inherit from PropertyTextBoxControlBase is that they support "on page edit". If this property returns false CreateDefaultControls() will be called instead of CreateOnPageEditControls() when in "on page edit" mode.
Methods
ApplyEditChanges()
Applies changes for the posted data to the page's properties when the RenderType property is set to Edit.
Declaration
public override void ApplyEditChanges()
Overrides
Remarks
This method is called from ApplyChanges() if the control does not have an adapter.
CreateEditControls()
Creates an edit interface for the property.
Declaration
public override void CreateEditControls()
Overrides
SetupEditControls()
Setups the text box.
Declaration
protected override void SetupEditControls()