I have a group box contains radio buttons eg.
o Male
o Female
i want my code to get the sel
For Win Forms :
To get the value (assuming that you want the value, not the text) out of a radio button, you get the Checked property:
string value = "";
bool isChecked = radioButton1.Checked;
if(isChecked )
value=radioButton1.Text;
else
value=radioButton2.Text;
For Web Forms :
Male
Female
And CS-in some button click
string value=rdoPriceRange.SelectedItem.Value.ToString();