Ajax更新面板随机错误'PRM_MissingPanel'

问题描述 投票:1回答:1

我使用Visual Studio中的Ajax更新面板来处理网站上搜索功能的回发。 (IE搜索成员)将生成带有结果的gridview。每次我从TFS获得最新版本时,都会抛出此错误:

http://localhost:58921/bundles/MsAjaxJs第1行第132567行未处理的例外情况? JavaScript运行时错误:无法获取未定义或空引用的属性“PRM_MissingPanel”

在它中断之后,我可以再次调试,它不会破坏,直到我得到一个更新的版本。

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

有关为什么会发生这种情况的任何想法?

MsAjaxBundle来自ScriptManager,它是在我创建Web App时生成的:

    <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>
javascript c# asp.net ajax updatepanel
1个回答
3
投票

问题是我隐藏了一个包含更新面板的div,然后将visible更改为true,但更新面板实际上并未显示。

以下是我更改它以便更新面板始终存在而不是消失并重新出现:

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <div visible="false" id="Search" runat="server">
            <div style="overflow: hidden;">
© www.soinside.com 2019 - 2024. All rights reserved.