ASP Net Controls ASP.Net Tutorial

<%@ Page Language="C#" %>
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

    protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e)
    {
        lblMessage.Text = TreeView1.SelectedValue;
    }



    TreeView Value


    
    
            id="TreeView1"
        OnSelectedNodeChanged="TreeView1_SelectedNodeChanged"
        Runat="server" >
        
                    Text="Home"
            Value="Home">
                            Text="Products">
                                    Text="First Product"
                    Value="FirstProduct" />
                                    Text="Second Product"
                    Value="SecondProduct" />
            
                            Text="Services">
                                    Text="First Service"
                    Value="FirstService" />
                                    Text="Second Service"
                    Value="SecondService" />
            
        
        

    
    

    
    You selected:
            id="lblMessage"
        EnableViewState="false"
        Runat="server" />