62,047
社区成员
发帖
与我相关
我的任务
分享
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
for (int i = 0; i < 10; i++)
{
Label label = new Label();
label.Text = "test";
this.form1.Controls.Add(label);
Button button = new Button();
button.Text = "click me!";
this.form1.Controls.Add(button);
}
}
}