c# - Grab user input from dynamic text box -
i have 2 buttons . 1 button creates textbox , submits information. i'm having trouble retrieving users texts once textbox has been created. here code: private void createtextbox(int j) //creates fields / cells { textbox t = new textbox(); t.id = "textbox" + j; //t.text = "textbox" + j; lsttextbox.add(t); var c = new tablecell(); c.controls.add(t); r.cells.add(c); table1.rows.add(r); session["test"] = lsttextbox; } protected void button2_click(object sender, eventargs e) { string[] holder = new string[4]; (int = 0; < holder.length; i++) { holder[i] = ""; } list<textbox> lsttextbox = (session["test"] list<textbox>); if (lsttextbox.count < counter) { int = lsttextbox.count; (int j = 0; j < i;