Hi,
The most likely reason is that the control you use to render the table
doesn't save its contents to the ViewState. So, you three options:
1. Use an alternative control that is ViewState-aware (I don't do much
WebForms programming now so I am not 100% sure one exists)
2. Modify the control used to render the table to save/restore contents to
the ViewState
3. Re-design the code responsible for rendering the table to save/restore
the loaded data.
Unfortunately, there are little details about your page to suggest something
more specific.
I would also say that if you use server-side controls to render table cells'
contents, they should automatically use ViewState unless you explicitly
disabled ViewState usage. But if you use plain Response.Write, you will most
likely have to store/retrieve the data manually.
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
Jim Mitchell said:
I load a table and a textbox on the initial pageload. The value in the
textbox survives the postback, the values in the table do not.
Is there a way for the values in the table control to survive a postback?
Thanks in advance.