A
\A_Michigan_User\
I'm using asp.net/vb.net/ado.net to create a very simple user interface.
(Everything works if I use STATICALLY created textBoxes... but not when I
make them DYNAMICALLY.)
1. Execute a SQL SELECT cmd to retrieve a record.
2. Loop through the dataReader values, creating textBox boxes dynamically,
adding them to a Panel.
(The database values are placed in these textboxes.)
3. Allow the user to edit 1 of the values in 1 of the textboxes.
4. When he hits the SUBMIT button... it saves his changes back to the
database with an UPDATE command.
I seem to have everything working... but the values that are getting stored
at the *ORIGINAL* values
(not the new ones that user typed in.)
Seems like I can't get dynamically created controls to return the user's
*NEW* values back to the database.
Help!
(Everything works if I use STATICALLY created textBoxes... but not when I
make them DYNAMICALLY.)
1. Execute a SQL SELECT cmd to retrieve a record.
2. Loop through the dataReader values, creating textBox boxes dynamically,
adding them to a Panel.
(The database values are placed in these textboxes.)
3. Allow the user to edit 1 of the values in 1 of the textboxes.
4. When he hits the SUBMIT button... it saves his changes back to the
database with an UPDATE command.
I seem to have everything working... but the values that are getting stored
at the *ORIGINAL* values
(not the new ones that user typed in.)
Seems like I can't get dynamically created controls to return the user's
*NEW* values back to the database.
Help!