System.Web.UI.WebControls.TreeView.TreeNodeCheckChanged Event

Occurs when a check box in the System.Web.UI.WebControls.TreeView control changes state between posts to the server.

Syntax

public event TreeNodeEventHandler TreeNodeCheckChanged

Remarks

The TreeView.TreeNodeCheckChanged event is raised when a check box in the System.Web.UI.WebControls.TreeView control changes state between posts to the server. This allows you to provide an event-handling method that performs a custom routine, such as updating a database or the displayed content, whenever this event occurs.

Even though the TreeView.TreeNodeCheckChanged event is fired on post back, changing a check box does not cause a post back.

For more information about handling events, see Consuming Events.

Requirements

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