Asp Control ASP.Net

<%@ Page Language="C#" %>
    
    protected void Button1_Click(object sender, System.EventArgs e)
    {
        TreeView1.ExpandAll();
    }
    
    protected void Button2_Click(object sender, System.EventArgs e)
    {
        TreeView1.CollapseAll();
    }
    
    protected void Button3_Click(object sender, System.EventArgs e)
    {
       TreeNode myNode = new TreeNode();
       myNode.Text = TextBox1.Text;
       myNode.NavigateUrl = TextBox2.Text;
       TreeView1.FindNode("Home/Finance/Markets").ChildNodes.Add(myNode);
    }



    TreeView Control


    
                                    Runat="server" 
                        Text="Expand Nodes" 
                        OnClick="Button1_Click" />
                                    Runat="server" 
                        Text="Collapse Nodes" 
                        OnClick="Button2_Click" />


            Text of new node:
            
            
            Desination URL of new node:
            
            
            
            
                         OnClick="Button3_Click" />
                 DataSourceId="SiteMapDataSource1">
        


        


    


File: Web.sitemap