日期:2014-05-20 浏览次数:20833 次
protected void btnAdd_Click(object sender, EventArgs e)
{
for (int i = 0; i < 10; i++)
{
Button btn = new Button();
btn.ID = "btn" + i;
PlaceHolder1.Controls.Add(btn);
Response.Write("<br>");
}
}
for (int i = 0; i < 10; i++)
{
Button btn = new Button();
btn.ID = "btn" + i;
PlaceHolder1.Controls.Add(btn);
}
Panel p = new Panel();
PlaceHolder1.Controls.Add(p);