System.Web.UI.WebControls.TextBox.TextChanged Event

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

Syntax

public event EventHandler TextChanged

Remarks

The TextBox.TextChanged event is raised when the content of the text box changes between posts to the server. The event is only raised if the text is changed by the user; the event is not raised if the text is changed programmatically.

Note:

A System.Web.UI.WebControls.TextBox control must persist some values between posts to the server for this event to work correctly. Be sure that view state is enabled for this control.

For more information about handling events, see Consuming Events.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0