【问题标题】:Asp.net dynamic table content is removed when saved in ViewstateAsp.net 动态表格内容在 Viewstate 中保存时被删除
【发布时间】:2010-12-07 23:16:45
【问题描述】:

设置表格内容 ...

ViewState["Table1"] = Table1; // When remove this line, table is seen on the page.

...

我该怎么办?

【问题讨论】:

    标签: asp.net dynamic viewstate


    【解决方案1】:

    问题是我试图不在事件内部而是在函数内部初始化 ViewState。据我所知,ViewState 必须在事件中初始化。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-05-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多