I have a group box contains radio buttons eg.
o Male o Female
o Male
o Female
i want my code to get the sel
You need to check one if you have two
if(rbMale.Checked) { } else { }
You need to check all the checkboxes if more then two
if(rb1.Checked) { } else if(rb2.Checked) { } else if(rb3.Checked) { }