I have a table (System.Web.UI.WebControls.Table) on my page and I'm creating the rows and cells dynamically based off of information from the database. I have the EnableViewState set to true for the table control but I am loosing the viewstate when the page is submitted to itself. I also tried setting the EnableViewState to true for the rows and cells that I added during the code behind, but that did not help.
Is there anyway to preserve the viewState? Has anyone run into this before? I would think that this is a very common thing to be doing in code. I'm also adding DropDownLists and checkboxes to my columns.
If this way just won't work, is there something else I could try?
Thanks!!
Is there anyway to preserve the viewState? Has anyone run into this before? I would think that this is a very common thing to be doing in code. I'm also adding DropDownLists and checkboxes to my columns.
If this way just won't work, is there something else I could try?
Thanks!!