I'm the root node
obout.com
ASP TreeView
Fast
Easy
Links & Notes since 1998
First child
Second child
Third child

This example demonstrate how to use the OnNodeExpand and OnNodeCollapse events.

The OnNodeExpand event is triggered when a node is expanded,
and the OnNodeCollapse event is executed when a node is collapsed.

The events are available:
- on client side - you can execute a javascript action when a node is expanded/collapsed
- on the server side - you can make a server-side processing (for example to update a database)


You can read more about the events of the ASPTreeView here

Here you'll find a nice tutorial about how to use the server-side events to update
a database (using 3 of obout's components: ASPTreeView, Postback4 and TreeDB)