Components ASP.Net

<%@ Page Language="C#" %>


    protected void btnSubscribe_Click(object sender, EventArgs e)
    {
        foreach (TreeNode node in TreeView1.CheckedNodes)
            bltSubscribed.Items.Add(node.Text);
    }



    TreeView CheckBoxes


    
    

    
    Select the Newsgroups which you 
    would like to join: 
    
    
    
            id="TreeView1"
        ShowCheckBoxes="Leaf"
        Runat="server">
        
                    Text="Programming">
            
            
            
        
                    Text="Sports">
            
            
            
                
        

        
    
    
    
            id="btnSubscribe"
        Text="Subscribe"
        OnClick="btnSubscribe_Click"
        Runat="server" />
    
    
    
    You selected:
    
            id="bltSubscribed"
        EnableViewState="false"
        Runat="server" />