G
Guest
I've got an asp.net 1.0 web form, which has a ton of fields. I am NOT using
data binding. I programmatically create a data adapter and load the values
into a table, then populate the fields on load.
When the user clicks save, I gather the data from the fields and generate an
UPDATE command and use a SQLCommand to write it to the database.
The problem is, when the user trypes something into one of the fields and
hits Save, the code reads the value (say, of a text box) and gets the
ORIGINAL value of that field, rather than the UPDATED value that the user
entered.
What is wrong here, and how can I fix it?
Thanks!
data binding. I programmatically create a data adapter and load the values
into a table, then populate the fields on load.
When the user clicks save, I gather the data from the fields and generate an
UPDATE command and use a SQLCommand to write it to the database.
The problem is, when the user trypes something into one of the fields and
hits Save, the code reads the value (say, of a text box) and gets the
ORIGINAL value of that field, rather than the UPDATED value that the user
entered.
What is wrong here, and how can I fix it?
Thanks!