Hi experts
i did adding radio buttons dynamically in a table. then how can i get checked radio button values in that table
here i post my ocde
int j = 0;
int k = 0;
string l = "0";
foreach (var q in MyList)
{
if (q.OptionGroup == "Radio Buttons")
{
TableRow tr = new TableRow();
tr.Font.Bold = true;
TableCell tc = new TableCell();
Label lblquestion = new Label();
tc.Height = 10;
lblquestion.Text = q.Name;
tc.Controls.Add(lblquestion);
tr.Controls.Add(tc);
for (int i = 0; i < Mylist.Length; i++)
{
TableRow tr1 = new TableRow();
TableCell cl = new TableCell();
TableCell cl2 = new TableCell();
Label txt = new Label();
txt.Text = AnswerName;
txt.ID = "Lableanswer" + k;
cl.Height = 10;
cl2.Height = 10;
RadioButton raid = new RadioButton();
raid.ID = "raid" + j;
raid.GroupName = l;
cl.Controls.Add(txt);
cl2.Controls.Add(raid);
tr.Controls.Add(cl);
tr.Controls.Add(cl2);
j++;
k++;
table1.Controls.Add(tr1);
}
table1.Controls.Add(tr);
}
l = l + 1;
}
}
here we have multiple radiobutton in each row.. how can i get checked radio button values in each row..
please help me..
Thanks in advance..