panel control example

panel control example

Previous Home Next

 

The Panel control is used as a container for other controls.The Panel Control is so easy to use that I hesitated to even write an article about it. But I have received several questions about it so decided to write the article anyway. The Panel Control is a container that allows you to include other server controls on it.

  
   

   

  ...............Designing code for panel control..................
....................................................................

                  
            
                                              


            
.................................................................... ................cs code for button click........................... .................................................................... protected void Button1_Click(object sender, EventArgs e) { if (RadioButton1.Checked) { Label1.Text = RadioButton1.Text.ToString(); } else if (RadioButton2.Checked) { Label1.Text = RadioButton2.Text.ToString(); } else { Label1.Text = "select any one"; } } ....................................................................
Previous Home Next