Accessing dynamically created textboxes text
问题 I have stumbled across a problem with my asp.net form. Within my form the end user chooses a number of textboxes to be dynamically created , this all works fine with the following code: protected void txtAmountSubmit_Click(object sender, EventArgs e) { int amountOfTasks; int.TryParse(txtAmountOfTasks.Text, out amountOfTasks); for (int i = 0; i < amountOfTasks; i++) { TextBox txtAddItem = new TextBox(); txtAddItem.ID = "txtAddItem" + i; txtAddItem.TextMode = TextBoxMode.MultiLine; questionNine