PDA

Click to See Complete Forum and Search --> : Saving a Dynamic table?


tailz
Jul 9th, 2003, 08:49 AM
Hi all

I'm generating a table at runtime using values from a database. The table is full of checkboxes, dropdownlists etc.

This is all works fine, however on postback it would seem I have to recreate the table + controls which I dont want

Is there a way I can save the entire table object and controls maybe using the cache or sommat?

any help appreciated

Lethal
Jul 9th, 2003, 11:41 AM
Either way, you are still going to have to add it to the page's controls collection. Just move the code that gens the table outside of the IsPostBack() block.