ASP Net Controls ASP.Net Tutorial

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

    protected void btnSubmit_Click(object sender, EventArgs e)
    {
        if (rdlOther.Checked)
            pnlOther.Visible = true;
        else
            pnlOther.Visible = false;
    }



    Show Panel


    
    

    Select your favorite programming language:
    
            id="rdlVisualBasic"
        GroupName="language"
        Text="Visual Basic"
        Runat="server" />
    
            id="rdlCSharp"
        GroupName="language"
        Text="C#"
        Runat="server" />
    
            id="rdlOther"
        GroupName="language"
        Text="Other Language"
        Runat="server" />
    
            id="pnlOther"
        Visible="false"
        Runat="server">
                    id="lblOther"
            Text="Other Language:"
            AssociatedControlID="txtOther"
            Runat="server" />
                    id="txtOther"
            Runat="server" />
    
    
            id="btnSubmit"
        Text="Submit"
        Runat="server" OnClick="btnSubmit_Click" />