Daspoo
Regular
Ok, new question concerning the whole notion of dynamically creating controls on a web form. I've got an ASPX page building dynamic controls within an HTML table (e.g., textboxes). I write the HTML table in the HTML design area of the ASPX page and then build the rows and cells of the table, and the controls within the cells, in the code-behind page.
Now I'm stuck as to how I will be able to update the database with information within those textboxes, keeping in mind that between the Page_Load and the Update call, the user may change the values within those textboxes. When a postback happens, don't those dynamic controls disappear, and as a result, their respective values as well? And rebuilding the controls will make the "text" properties empty, no? Anyone have any ideas about how I can grab the text in a dynamically-generated textbox and use it after the postback? Thanks in advance!
Now I'm stuck as to how I will be able to update the database with information within those textboxes, keeping in mind that between the Page_Load and the Update call, the user may change the values within those textboxes. When a postback happens, don't those dynamic controls disappear, and as a result, their respective values as well? And rebuilding the controls will make the "text" properties empty, no? Anyone have any ideas about how I can grab the text in a dynamically-generated textbox and use it after the postback? Thanks in advance!