This is a migrated thread and some comments may be shown as answers.

Simple radio button question

1 Answer 45 Views
Button
This is a migrated thread and some comments may be shown as answers.
Najid Hanif
Top achievements
Rank 2
Najid Hanif asked on 26 Oct 2011, 10:15 PM
How do I get the value (What radio button is currently selected) for a group of radio buttons from CS code behind?

Thanks

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 27 Oct 2011, 04:44 AM
Hello Najid,

You can set the AutoPostBack as true and try the following .

C#:
protected void Page_Load(object sender, EventArgs e)
  {
   string s = RadioButtonList1.SelectedValue;
 
 }


Thanks,
Princy.
Tags
Button
Asked by
Najid Hanif
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
Share this question
or