Populer Topics

RadioButton Control

Radio Button always Use this control in a group. Only one radio button is it a group of radio button control can be check at a time.

The radio button support Following Property.

Property Description
GroupName

Enable us to create a group of radio button text.

Checked

Get or Set weather the radio button control is check or not.

AutoPostBack

It will check weather the frame is automatically post when user click on the radio button control.

 

.Aspx File


 

.Cs File

public void Print(Object Sender, EventArgs e)
{
    RadioButton r1 = (RadioButton)Sender;
    Response.Write(r1.Text);
}

 

Tools Property Setting
RadioButton ID
onCheckedChanged
RadioButton1
Print
RadioButton ID
onCheckedChanged
RadioButton2
Print
RadioButton ID
onCheckedChanged
RadioButton3
Print