62,074
社区成员
发帖
与我相关
我的任务
分享
RadioButtonList L = new RadioButtonList();
L.Items.Add("stra");
L.Items.Add("strb");
L.Items.Add("strc");
L.Items.Add("strd");
this.div1.Controls.Add(L);
<table id="RadioButtonList1" border="0">
<tr>
<td><input id="RadioButtonList1_0" type="radio" name="RadioButtonList1" value="1" /><label for="RadioButtonList1_0">1</label></td>
</tr><tr>
<td><input id="RadioButtonList1_1" type="radio" name="RadioButtonList1" value="2" /><label for="RadioButtonList1_1">2</label></td>
</tr><tr>
<td><input id="RadioButtonList1_2" type="radio" name="RadioButtonList1" value="3" /><label for="RadioButtonList1_2">3</label></td>
</tr>
</table>
<div id="div1">
<table id="ctl02" border="0">
<tr>
<td><input id="ctl02_0" type="radio" name="ctl02" value="stra" /><label for="ctl02_0">stra</label></td>
</tr><tr>
<td><input id="ctl02_1" type="radio" name="ctl02" value="strb" /><label for="ctl02_1">strb</label></td>
</tr><tr>
<td><input id="ctl02_2" type="radio" name="ctl02" value="strc" /><label for="ctl02_2">strc</label></td>
</tr><tr>
<td><input id="ctl02_3" type="radio" name="ctl02" value="strd" /><label for="ctl02_3">strd</label></td>
</tr>
</table></div>