Export (0) Print
Expand All

TextBox.TextChanged Event

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

[Visual Basic]
Public Event TextChanged As EventHandler
[C#]
public event EventHandler TextChanged;
[C++]
public: __event EventHandler* TextChanged;

[JScript] In JScript, you can handle the events defined by a class, but you cannot define your own.

Event Data

The event handler receives an argument of type EventArgs.

Remarks

The TextChanged event is raised when the content of the text box changes between posts to the server.

Note   A 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

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

TextBox Class | TextBox Members | System.Web.UI.WebControls Namespace | OnTextChanged | Consuming Events

Show:
© 2014 Microsoft