Working with TreeNode Controls in a TreeView Control (VB.net) : Tree « Components « ASP.Net






Working with TreeNode Controls in a TreeView Control (VB.net)

<%@ Page Language=VB Debug=true %>
<%@ Import Namespace="Microsoft.Web.UI.WebControls" %>
<%@ Register TagPrefix="IEControls" 
    Namespace="Microsoft.Web.UI.WebControls" 
    Assembly ="Microsoft.Web.UI.WebControls"
%>
<HTML>
<HEAD>
<TITLE>Working with TreeNode Controls in a TreeView Control</TITLE>
</HEAD>
<BODY LEFTMARGIN="40">
<form runat="server">
<IEControls:treeview
    id="tvBasic"
    autoselect="False"
    showplus="True"
    showlines="True"
    expandlevel=2
    runat="server">
    <IEControls:treenode Text="Clothing">
        <IEControls:treenode Text="A"/>
        <IEControls:treenode Text="B"/>
        <IEControls:treenode Text="C">
            <IEControls:treenode Text="a"/>
            <IEControls:treenode Text="b"/>
            <IEControls:treenode Text="c"/>
        </IEControls:treenode>
    </IEControls:treenode>
    <IEControls:treenode Text="Electronics">
        <IEControls:treenode Text="A"/>
        <IEControls:treenode Text="B"/>
        <IEControls:treenode Text="C"/>
        <IEControls:treenode Text="D"/>
    </IEControls:treenode>
</IEControls:treeview>
</form>
</BODY>
</HTML>
           
       








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 (VB.net)
5.Treeview with custom icon (VB.net)
6.treeview with expand, collapse and change action (VB.net)
7.Treeview with navigational URL (VB.net)
8.Setting Styles in a TreeView Control (VB.net)
9.Tree Node selected event in a TreeView (VB.net)
10.Using Links with TreeNode Controls in a TreeView Control (VB.net)
11.Using Images with TreeNode Controls in a TreeView Control (VB.net)
12.TreeNode Expand action (VB.net)
13.TreeNode Collapses action (VB.net)
14.Treeview and checkbox treenode (VB.net)
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#)