Hi
I want by default Radio Button should be ticked. I am using below code but it is not worling. If i Uncheck nithing happens
protected void rbtnSelectEmp_OnCheckedChanged(object sender, EventArgs e)
{
foreach (RepeaterItem item in rptData.Items)
{
RadioButton rbtn = (RadioButton)item.FindControl("rb1");
rbtn.Checked = false;
}
((RadioButton)sender).Checked = true;
}
Thanks
Abhishek ChadhaPosted Sep 21, 2022, 5:56 PM
either you use below property
or
From the code behind, you can write it as on page load event