TreeView Control in asp.net

 For Example: Write a program to demonstrate the use of tree view control.

<asp:TreeView ID="TreeView1" runat="server">

        <Nodes>

            <asp:TreeNode Text="Faculty" Value="Faculty">

                <asp:TreeNode Text="Teaching " Value="Teaching "></asp:TreeNode>

                <asp:TreeNode Text="Non-Teaching" Value="Non-Teaching"></asp:TreeNode>

            </asp:TreeNode>

            <asp:TreeNode Text="Center Photo Gallary" Value="Center Photo Gallary">

                <asp:TreeNode Text="New-Year Events" Value="New-Year Events"></asp:TreeNode>

                <asp:TreeNode Text="Sandup" Value="Sandup"></asp:TreeNode>

            </asp:TreeNode>

            <asp:TreeNode Text="Center Lab Photo" Value="Center Lab Photo"></asp:TreeNode>

        </Nodes>

    </asp:TreeView>


Output: 



Comments

Popular posts from this blog

simple program C#

Regular Expression Validator Control in asp.net

two dimension array in C#