开发者

Asp.net dynamic table content is removed when saved in Viewstate

开发者 https://www.devze.com 2022-12-08 17:07 出处:网络
Set content of table ... ViewState[\"T开发者_如何学运维able1\"] = Table1; // When remove this line, table is seen on the page.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消