Try our conversational search powered by Generative AI!

Class PropertyTextBoxControlBase

Base control that creates a user interface for editing in a textbox.

Inheritance
System.Object
PropertyTextBoxControlBase
Implements
System.Web.UI.INamingContainer
Inherited Members
Namespace: EPiServer.Web.PropertyControls
Assembly: EPiServer.dll
Version: 7.19.2
Syntax
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

true if this control supports "on page edit"; otherwise, false.

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()
Overrides

Implements

System.Web.UI.INamingContainer

Extension Methods