Asp Control ASP.Net

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

    protected void btnSubmit_Click(object sender, EventArgs e)
    {
        if (rdlMagazine.Checked)
            lblResult.Text = rdlMagazine.Text;
        if (rdlTelevision.Checked)
            lblResult.Text = rdlTelevision.Text;
        if (rdlOther.Checked)
            lblResult.Text = rdlOther.Text;
    }



    Show RadioButton


    
    

    
    How did you hear about our Website?
    
    

            

  •                     id="rdlMagazine"
                Text="Magazine Article"
                GroupName="Source"
                Runat="server" />
            

  •         

  •                     id="rdlTelevision"
                Text="Television Program"
                GroupName="Source"
                Runat="server" />
            

  •         

  •                     id="rdlOther"
                Text="Other Source"
                GroupName="Source"
                Runat="server" />
            

  •     

    
            id="btnSubmit"
        Text="Submit"
        Runat="server" OnClick="btnSubmit_Click" />
   
    
    
            id="lblResult"
        Runat="server" />