Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.
在属性中把EnableViewState="False"
在属性中把EnableViewState="False"
博客指出加载ViewState失败,强调加载ViewState的控件树需与上一请求保存时匹配,如动态添加控件,回发时添加的控件类型和位置要与初始请求一致,还给出解决办法,即在属性中设置EnableViewState=\False\。
7202

被折叠的 条评论
为什么被折叠?



