IEditableTextControl.TextChanged Event

 

Occurs when the content of the text changes between posts to the server.

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

event EventHandler TextChanged

The TextChanged event occurs when the Text property changes between posts to the server. An implementation of this event can be found in either the TextBox or the ListControl control.

The following code example shows an implementation of the TextChanged event.


public partial class customeditablebox : System.Web.UI.UserControl, IEditableTextControl
{
    private static readonly object EventCustomTextChanged = new Object();

    public event EventHandler TextChanged
    {
        add
        {
            Events.AddHandler(EventCustomTextChanged, value);
        }
        remove
        {
            Events.RemoveHandler(EventCustomTextChanged, value);
        }
    }

    public string Text
    {
        get
        {
            // Provide implementation.
            return String.Empty;
        }
        set
        {
            // Provide implementation.
        }
    }
}

.NET Framework
Available since 2.0
Return to top
Show: