Ajax更新面板随机错误';PRM_MissingPanel';
本文关键字:MissingPanel PRM 错误 更新 随机 Ajax | 更新日期: 2025-04-15 20:37:30
我使用Visual Studio中的Ajax更新面板来处理我在网站上的搜索功能的回发。(IE搜索成员)将生成包含结果的网格视图。每次我从TFS获得最新版本时,它都会抛出以下错误:
中第1行第132567列出现未处理的异常http://localhost:58921/bundles/MsAjaxJs?JavaScript运行时错误:无法获取未定义或空引用的属性"PRM_MissingPanel"
在它坏了之后,我可以再次调试,直到我得到一个新版本,它才会坏。
我已经在谷歌上搜索了很多,但我找不到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>
问题是我隐藏了一个div,里面有更新面板,然后将可见更改为true,但更新面板实际上并没有显示。
以下是我更改的内容,以便更新面板始终存在,而不是消失和重新出现:
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<div visible="false" id="Search" runat="server">
<div style="overflow: hidden;">
这里也有同样的问题:在我的Login.aspx页面上,突然间,它似乎无缘无故地发生了。
所提出的解决方案不适用于我的案例,因为我的面板没有隐藏,而且同一个页面在一年内一直未经修改。
这是一个非常简单的页面-我几乎什么都试过了,没有运气。。。直到我添加了ID="0";SomeUnrelatedDhere";到asp:UpdatePanel,尽管我没有在codeehind中使用它,尽管它已经工作了一年,没有明确的id集。。。
所以我的解决方案包括添加ID="0";某事";到.ascx文件中的更新面板。