var competitive=new {technique,business}

2007/5/11

ViewState小议

今天看了几篇关于ViewState的文章:
1,ViewState: All You Wanted to Know
2,ASP.NET Web Form 的“连续”和“有状态”假象、
3,Understanding ASP.NET View State
4,TRULY Understanding ViewState
对于ViewState的保存优化加深了了解,得出一个结论:viewstate保存的是页面回发前控件的状态。只有同一页面上需要postback前后进行数据比较来触发某事件的页面才需要ViewState.关闭enableviewstate后页面也会post返回用户输入的数据。

0 评论: