Reading values from dynamically added controls.
-
I'm coming across a problem while trying to read values from dynamically added text boxes. This is my method: *Create placeholder inside of the aspx. *Read in data from sql, creating a label and textbox for each entry. *Add those controls to the placeholder. That works just fine. However, I can't seem to read the values from those dynamically added textboxes. When I run in debug mode, the placeholder is empty by the time the page loads. Any advice on the matter? Thanks.
-
I'm coming across a problem while trying to read values from dynamically added text boxes. This is my method: *Create placeholder inside of the aspx. *Read in data from sql, creating a label and textbox for each entry. *Add those controls to the placeholder. That works just fine. However, I can't seem to read the values from those dynamically added textboxes. When I run in debug mode, the placeholder is empty by the time the page loads. Any advice on the matter? Thanks.
I found out that it will not delete the controls inside of the placeholder, provided I DO NOT assign the controls a unique id. This functionality is... strange at best. But I guess a part of learning a solution is becoming familiar with its quarks.