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 runat="server">
</div>
作者:豆腐