2010-03-25 87 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

可能有一些緩存控件。嘗試清除瀏覽器緩存並再試一次

相關問題