单击按钮时,将显示 5 个文本框。我必须添加一个按钮来回复最后一个文本框 - 谁能告诉我怎么做?
这是我的代码:
protected void GenTextBox(object sender, EventArgs e)
{
for (i = 1; i <= TotalReplys; i++)
{
HtmlGenericControl lineBreak = new HtmlGenericControl("br");
Page.Controls.Add(lineBreak);
TextBox MyTextBox = new TextBox();
MyTextBox.ID = i.ToString();
MyTextBox.Width = 540;
MyTextBox.Height = 60;
MyTextBox.Text = "Get the value from the database";
MyTextBox.TextMode = TextBoxMode.MultiLine;
Panel1.Controls.Add(MyTextBox);
Panel1.Controls.Add(lineBreak);
}
}