A
Arjen Hoekstra
Hello,
I've got a datagrid with a textbox in each cell. I've also two buttons, one
to add a row to the datagrid and one to delete a row. A user can type data
into textboxes and then submit it to a database (by clicking on a submit
button).
The problem is that every time, the "add row" or "delete row" button is
clicked, the textbox values in the datagird are emptied, because when the
page postbacks it gets the latest datatable from a session variable. Because
a new datatable is only saved when a new row is added or deleted it will
have no values every time. Do you have any ideas how to remember the values
from the textboxes? Thanks in advance for responding.
Regards,
Arjen
I've got a datagrid with a textbox in each cell. I've also two buttons, one
to add a row to the datagrid and one to delete a row. A user can type data
into textboxes and then submit it to a database (by clicking on a submit
button).
The problem is that every time, the "add row" or "delete row" button is
clicked, the textbox values in the datagird are emptied, because when the
page postbacks it gets the latest datatable from a session variable. Because
a new datatable is only saved when a new row is added or deleted it will
have no values every time. Do you have any ideas how to remember the values
from the textboxes? Thanks in advance for responding.
Regards,
Arjen