void Page_Load(Object o, EventArgs e) {for (int i = 0; i < 3; i++) {CheckBox cb = new CheckBox();cb.ID = "test" + i;cb.Attributes["Test"] = "test";MyDiv.Controls.Add(cb);}}
</SCRIPT>
<div id="MyDiv" runat="server">
</div>
作者:豆腐
……