2010-03-25 86 views
0

我有一个GridView控件。当我移动GridView控件到另一个网页,我得到这个错误:无法加载视图状态。视图状态必须匹配的控制树。

Server Error in '/' Application.

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.

如何解决这个问题呢?

在此先感谢。

+0

你是什么意思“更改gridview控件的页面”?你是否通过代码来做这件事?你能提供一些这样的例子吗?你是指这样一个事实,即当你上传一个新的aspx时,你会遇到这个问题一次,然后再次开始工作? – 2010-03-25 10:35:44

回答

-1

可能有一些缓存控件。尝试清除浏览器缓存并再试一次