Tree Node selected event in a TreeView ( : Tree « Components « ASP.Net

Tree Node selected event in a TreeView (

<%@ Page Language=VB Debug=true %>
<%@ Import Namespace="Microsoft.Web.UI.WebControls" %>
<%@ Register TagPrefix="IEControls" 
    Assembly ="Microsoft.Web.UI.WebControls"
<script runat=server>
Sub Node_Selected(ByVal Sender as Object, _
    ByVal E as TreeViewSelectEventArgs)
    lblMessage.Text = "You selected node " & E.NewNode.ToString() _
        & " and moved from node " & E.OldNode.ToString() & "."
End Sub
<TITLE>Writing Code that Fires When a TreeNode Control in a TreeView Control is Selected</TITLE>
<form runat="server">
    <IEControls:treenode Text="Clothing">
        <IEControls:treenode Text="Men's"/>
        <IEControls:treenode Text="Women's"/>
        <IEControls:treenode Text="Children's">
            <IEControls:treenode Text="Socks"/>
            <IEControls:treenode Text="Shirts"/>
            <IEControls:treenode Text="Pants"/>
    <IEControls:treenode Text="Electronics">
        <IEControls:treenode Text="TV/VCR"/>
        <IEControls:treenode Text="Audio"/>
        <IEControls:treenode Text="Car"/>
        <IEControls:treenode Text="Computer"/>

Related examples in the same category

1.IE control tree with link node and frame control (C#)
2.IE control treeview with link node (C#)
3.Tree with style (C#)
4.Static WebControls treeview (
5.Treeview with custom icon (
6.treeview with expand, collapse and change action (
7.Treeview with navigational URL (
8.Working with TreeNode Controls in a TreeView Control (
9.Setting Styles in a TreeView Control (
10.Using Links with TreeNode Controls in a TreeView Control (
11.Using Images with TreeNode Controls in a TreeView Control (
12.TreeNode Expand action (
13.TreeNode Collapses action (
14.Treeview and checkbox treenode (
15.On Tree Node Populate Event (C#)
16.Add tree node (C#)
17.Tree node with hyper link (C#)
18.Treeview image: XP file explore style (C#)
19.Tree view node style (C#)
20.On tree node selection changed event (C#)