【发布时间】:2011-12-16 18:51:44
【问题描述】:
我正在尝试优化我的 ASP.NET 4.0 应用程序的视图状态。 由于gridview 为viewstae 添加了大量内容,因此我禁用了viewstateMode。 这些是我在禁用视图状态时遇到的以下问题。
1) On a postback the Gridview is blank.
2) In order to overcome the above problem I tried to bind the data in OnPreRender() then I ran into another problem : The Delete (Rowdelte) and Rowcommand doesn't fire.
在回发时将数据绑定到 datagrind 的最佳位置是什么,这样它就不会影响其余事件。
【问题讨论】:
标签: gridview viewstate asp.net-4.0