bxlbjorn
09-13-2007, 10:34 AM
Dear developers,
I'm creating quite a sofesticated page (online timesheet) with most of the content being created dynamically.
A large portion consists of a table with many cells, each of them containing textboxes with several properties, such as text, visible, etc etc.
The data in the textboxes are retrieved based on a selected value from a dropdownlist ouside the table.
Here is the problem:
When I change my dropdownlist selection, a postback is triggered, different data is retrieved and all controls, cells and rows within the table are recreated. However the result in the page is the same: the same text remains, the properties are the same, even if in my code everything seems to work fine.
I have a slight idea that this might have to do with the viewstate, but i have absolutely NO idea where to start beating this problem.
Some aditional info:
The table control is already in the page.
Only the rows, cells and controls within the page are created dynamically and added.
I have been carefull about adding all objects in the right order aswell, eg first the textbox in the cell, then the cell in the row and finally the row in the table.
Can someone PLEASE help me with this cuz I'm going completely bonkers...
Many thanks,
Björn
I'm creating quite a sofesticated page (online timesheet) with most of the content being created dynamically.
A large portion consists of a table with many cells, each of them containing textboxes with several properties, such as text, visible, etc etc.
The data in the textboxes are retrieved based on a selected value from a dropdownlist ouside the table.
Here is the problem:
When I change my dropdownlist selection, a postback is triggered, different data is retrieved and all controls, cells and rows within the table are recreated. However the result in the page is the same: the same text remains, the properties are the same, even if in my code everything seems to work fine.
I have a slight idea that this might have to do with the viewstate, but i have absolutely NO idea where to start beating this problem.
Some aditional info:
The table control is already in the page.
Only the rows, cells and controls within the page are created dynamically and added.
I have been carefull about adding all objects in the right order aswell, eg first the textbox in the cell, then the cell in the row and finally the row in the table.
Can someone PLEASE help me with this cuz I'm going completely bonkers...
Many thanks,
Björn