B
bijoy
My page has a Listbox called Rooms, a text field called chairPerson and
a button called Add.
When Add is clicked, the script needs to display the selected info in a
datagrid.
For example, if the user selects Rooms 1,5 and 7, and enters Bijoy for
chairperson and clicks Add, a datagrid on the page should display the
following:
1, Bijoy
5, Bijoy
7, Bijoy
THEN if the user select Rooms 2 and 3, sets chairperson to Jeff and
clicks Add, the datagrid should display:
1, Bijoy
5, Bijoy
7, Bijoy
2, Jeff
3, Jeff
To accomplish this, I am using a DataTable. When Add is clicked, I add
"rows" to the DataTable, then bind the datagrid to this DataTable.
It works fine, except for a "memory loss" problem - meaning, it forgets
what was originally in the datagrid.
How can I use ViewState to save the DataTable across postbacks?
Thanks in advance.
BIjoy
a button called Add.
When Add is clicked, the script needs to display the selected info in a
datagrid.
For example, if the user selects Rooms 1,5 and 7, and enters Bijoy for
chairperson and clicks Add, a datagrid on the page should display the
following:
1, Bijoy
5, Bijoy
7, Bijoy
THEN if the user select Rooms 2 and 3, sets chairperson to Jeff and
clicks Add, the datagrid should display:
1, Bijoy
5, Bijoy
7, Bijoy
2, Jeff
3, Jeff
To accomplish this, I am using a DataTable. When Add is clicked, I add
"rows" to the DataTable, then bind the datagrid to this DataTable.
It works fine, except for a "memory loss" problem - meaning, it forgets
what was originally in the datagrid.
How can I use ViewState to save the DataTable across postbacks?
Thanks in advance.
BIjoy