首页 新闻 会员 周边 捐助

頁面的狀態資訊無效,而且可能已經損毀。

0
悬赏园豆:10 [已关闭问题]

 $(document).ready(function(){           
            $('#<%=HouseTree.ClientID %>').click(function(){
                var el = event.srcElement;
                if($(el).is('span[title]')){
                    var housid= $(el).css({cursor:"hand"}).attr('title');
                     $.ajax({
                         url: "../roomdata/default.aspx",
                              type:"get",          
                              dataType:"html",
                              data: "room_id="+housid,
                              success:function(msg){
                                $("#detailDiv").html(msg).children().find("table").css({width:"100%"});
                          }
                     });
                }            
            });
        });

當我點擊TreeView對應的節點(此節點沒有刷新)返回msg后修改頁面detailDiv的值,但當我點擊不刷新的上層節點或者其他節點時都會出現下面的錯誤:

描述: 在執行目前 Web 要求的過程中發生未處理的例外情形。請檢閱堆疊追蹤以取得錯誤的詳細資訊,以及在程式碼中產生的位置。

例外詳細資訊: System.Web.HttpException: 這個頁面的狀態資訊無效,而且可能已經損毀。

原始程式錯誤:

[沒有相關的原始程式碼]

原始程式檔: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\gmapyy\35d74656\63a9782a\App_Web_o857kdsf.0.cs    行: 0

堆疊追蹤:

[FormatException: Base-64 字串中的無效字元。]
   System.Convert.FromBase64String(String s) +0
   System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +77
   System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState) +5
   System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) +37
   System.Web.UI.HiddenFieldPageStatePersister.Load() +116

[ViewStateException: 無效的 Viewstate。
	Client IP: 127.0.0.1
	Port: 
	User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
	ViewState: /wEPDwUJMzc0MjM5ODU4D2QWAgIDD2QWBAIBDzwrAAkCAA8WBh4NTmV2ZXJFeHBhbmRlZGQeDFNlbGVjdGVkTm9kZQULSG91c2VUcmVldDUeCUxhc3RJbmRleAJeZAgUKwACBQMwOjAUKwACFggeBFRleHQFBuS4reWcix4FVmFsdWUFATEeB1Rvb2xUaXAFATEeCEV4cGFuZGVkZxQrAAMFBzA6MCwwOjEUKwACFgofAwUG5buj5p2xHwQFATIfBQUBMh8GZx4IU2VsZWN0ZWRoFCsABQUPMDowLDA6MSwwOjIsMDozFCsAAhYIHwMFBuadseiOnh8EBQEzHwdoHwZnFCsAAwUHMDowLDA6MRQrAAIWCB8DBQbpq5jmraUfBAUBOB8HaB8GZxQrAAQFCzA6MCwwOjEsMDoyFCsAAhYIHwMFCeS4iuaxn+Wfjh8EBQE5HwdoHwZnFCsACwUnMDowLDA6MSwwOjIsMDozLDA6NCwwOjUsMDo2LDA6NywwOjgsMDo5FCsAAhYIHwMFCkXmo5/lu6DljYAfBAUCMzYfB2cfBmcUKwAKBSMwOjAsMDoxLDA6MiwwOjMsMDo0LDA6NSwwOjYsMDo3LDA6OBQrAAIWCh8DBQpB5qOf5bug5oi/HwQFAzExMx4ISW1hZ2VVcmwFHS4uL2ltYWdlcy9wYWdlX3doaXRlX3RleHQucG5nHwUFAzExMx4MU2VsZWN0QWN0aW9uCyouU3lzdGVtLldlYi5VSS5XZWJDb250cm9scy5UcmVlTm9kZVNlbGVjdEFjdGlvbgNkFCsAAhYKHwMFCkLmo5/lu6DmiL8fBAUDMTE0HwgFHS...]

[HttpException (0x80004005): 這個頁面的狀態資訊無效,而且可能已經損毀。]
   System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) +118
   System.Web.UI.ViewStateException.ThrowViewStateError(Exception inner, String persistedState) +13
   System.Web.UI.HiddenFieldPageStatePersister.Load() +221
   System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +107
   System.Web.UI.Page.LoadAllState() +43
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5252
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +247
   System.Web.UI.Page.ProcessRequest() +79
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +23
   System.Web.UI.Page.ProcessRequest(HttpContext context) +110
   ASP.areadesc_selecthouseinformation_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\gmapyy\35d74656\63a9782a\App_Web_o857kdsf.0.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +391
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +76

'/GMapYy' 應用程式中發生伺服器錯誤。

這個頁面的狀態資訊無效,而且可能已經損毀。

 

請問該如何解決上面的問題,知道怎麼解決的請告訴我一下,謝謝

soarfe的主页 soarfe | 初学一级 | 园豆:146
提问于:2009-07-08 16:28
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册