Asp.net dynamic table content is removed when saved in Viewstate
Set content of table ...
ViewState["T开发者_如何学运维able1"] = Table1; // When remove this line, table is seen on the page.
...
What should I do?
The problem is I tried to initialize ViewState not inside an event, but inside a function. As I learned ViewState must be initialized in event.
精彩评论