G
Guest
I have a Web Control Table and I am adding Radio buttons programatically. but
when the page is displayed groupname doesn't seem to work. I can select
multiple radio buttons....
code snippet...
TableRow aRow = new TableRow();
for (int i=0;i<5;i++)
{
TableCell cell1 = new TableCell();
RadioButton aRadio = new RadioButton();
aRadio.ID = "Radio" + i.;
aRadio.Text = options.ToString();
aRadio.GroupName = "Radio";
cell1.Controls.Add(aRadio);
aRow.Cells.Add(cell1)
}
when the page is displayed groupname doesn't seem to work. I can select
multiple radio buttons....
code snippet...
TableRow aRow = new TableRow();
for (int i=0;i<5;i++)
{
TableCell cell1 = new TableCell();
RadioButton aRadio = new RadioButton();
aRadio.ID = "Radio" + i.;
aRadio.Text = options.ToString();
aRadio.GroupName = "Radio";
cell1.Controls.Add(aRadio);
aRow.Cells.Add(cell1)
}