当我在几分钟内不使用或处理包含视图状态的页面并重新加载页面时,出现此错误:
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得到了解决方案
但是在应用这个之后,viewstate 变量在这个页面上不起作用。