<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master"
    AutoEventWireup="true" CodeBehind="Default.aspx.cs"
    Inherits="TreeView_Sample._Default" %>
<%@ Register Assembly="C1.Web.Wijmo.Controls.48"
    Namespace="C1.Web.Wijmo.Controls.C1TreeView"
    TagPrefix="wijmo" %>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <wijmo:C1TreeView ID="C1TreeView1"
        runat="server"
        ShowCheckBoxes="true">
        <Nodes>
            <wijmo:C1TreeViewNode Text="Node1" Value="Value1" />
            <wijmo:C1TreeViewNode Text="Node2" Value="Value2" />
            <wijmo:C1TreeViewNode Text="Node3" Value="Value3">
                <Nodes>
                    <wijmo:C1TreeViewNode Text="Node3.1" Value="Value3.1" />
                    <wijmo:C1TreeViewNode Text="Node3.2" Value="Value3.2">
                        <Nodes>
                            <wijmo:C1TreeViewNode Text="Node3.2.1" Value="Value3.2.1" />
                        </Nodes>
                    </wijmo:C1TreeViewNode>
                    <wijmo:C1TreeViewNode Text="Node3.3" Value="Value3.3" />
                </Nodes>
            </wijmo:C1TreeViewNode>
        </Nodes>
    </wijmo:C1TreeView>

    <br />
    <asp:Button ID="btnFind" runat="server" Text="Find Node3.2 (index 4)"
        OnClick="btnFind_Click" />
    <br />
    <asp:Label ID="lblResult" runat="server" />
</asp:Content>