2015-04-07 67 views
1

我使用Visual Studio中的Ajax更新面板來處理站點上我的搜索功能的後貼。 (IE搜索成員)將生成一個帶有結果的gridview。每次我從TFS獲得的最新版本,它拋出這個錯誤:Ajax更新面板隨機錯誤'PRM_MissingPanel'

unhandled exception at line 1, column 132567 in http://localhost:58921/bundles/MsAjaxJs ? JavaScript runtime error: Unable to get the property 'PRM_MissingPanel' of undefined or null reference

它打破後,我可以再次調試,它不會打破,直到我得到一個新的版本。

我做了很多谷歌搜索,我找不到PRM_MissingPanel是什麼。

爲什麼會發生這種情況的任何想法?

MsAjaxBundle來自ScriptManager的,當我建立了我的Web應用程序,其生成:

<asp:ScriptManager runat="server"> 
     <Scripts> 
      <asp:ScriptReference Name="MsAjaxBundle" /> 
      <asp:ScriptReference Name="jquery" /> 
      <asp:ScriptReference Name="bootstrap" /> 
      <asp:ScriptReference Name="respond" /> 
      <asp:ScriptReference Name="WebForms.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebForms.js" /> 
      <asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebUIValidation.js" /> 
      <asp:ScriptReference Name="MenuStandards.js" Assembly="System.Web" Path="~/Scripts/WebForms/MenuStandards.js" /> 
      <asp:ScriptReference Name="GridView.js" Assembly="System.Web" Path="~/Scripts/WebForms/GridView.js" /> 
      <asp:ScriptReference Name="DetailsView.js" Assembly="System.Web" Path="~/Scripts/WebForms/DetailsView.js" /> 
      <asp:ScriptReference Name="TreeView.js" Assembly="System.Web" Path="~/Scripts/WebForms/TreeView.js" /> 
      <asp:ScriptReference Name="WebParts.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebParts.js" /> 
      <asp:ScriptReference Name="Focus.js" Assembly="System.Web" Path="~/Scripts/WebForms/Focus.js" /> 
      <asp:ScriptReference Name="WebFormsBundle" /> 
     </Scripts> 
    </asp:ScriptManager> 
+0

而WOT是'MsAjaxJs'? –

+0

當我在Visual Studio中創建Web應用程序時,它就在那裏 – Chetdu

回答

2

的問題是,我躲在一個div它裏面更新面板,然後改變可見真,但更新面板並未實際顯示出來。

這是我改變它,以便更新板始終存在,而不是消失,重新出現:

<asp:UpdatePanel ID="UpdatePanel1" runat="server"> 
    <ContentTemplate> 
     <div visible="false" id="Search" runat="server"> 
      <div style="overflow: hidden;">