System.Web.UI.IEditableTextControl

Represents a control that renders text that can be changed by the user.

See Also: IEditableTextControl Members

Syntax

public interface IEditableTextControl : ITextControl

Remarks

Controls, such as System.Web.UI.WebControls.TextBox and those that derive from System.Web.UI.WebControls.ListControl, provide a text property that can be changed by a page user. When the text property is changed, an event is raised to notify handlers that the property has changed. Classes that implement System.Web.UI.IEditableTextControl must define the IEditableTextControl.TextChanged event.

Although the System.Web.UI.IEditableTextControl interface contains only the IEditableTextControl.TextChanged event, it inherits from the System.Web.UI.ITextControl interface, which defines a ITextControl.Text property. To implement the System.Web.UI.IEditableTextControl interface, a control must define the ITextControl.Text property and the IEditableTextControl.TextChanged event that occurs when the ITextControl.Text property changes between posts to the server.

System.Web.UI.IEditableTextControl is implemented by System.Web.UI.WebControls.TextBox and System.Web.UI.WebControls.ListControl. In those classes, the event is raised through the System.Web.UI.WebControls.ListControl.OnTextChanged(EventArgs) or System.Web.UI.WebControls.TextBox.OnTextChanged(EventArgs) methods. A class that implements the System.Web.UI.IEditableTextControl interface could define a similar method for raising the event.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0