当我不是在调试模式下运行我的网站但是在发布之后然后在每次更新的更新面板的页面上我得到:
Uncaught Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: Script entries not loaded yet.
我找到了解决方案设置EnablePartialRendering="false"
os ToolkitScriptManager
但是UpdatePanel不能用作UpdatePanel,整个页面都在刷新。
以下是我在master中加载内容的方法:
<head runat="server">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="Content/themes/base/minified/jquery-ui.min.css" />
<script src="/Scripts/jquery-2.0.3.min.js" type="text/javascript"></script>
<script src="/Scripts/jquery-ui-1.10.2.min.js" type="text/javascript"></script>
<asp:PlaceHolder runat="server">
<%: Scripts.Render("~/bundles/modernizr") %>
<script src="/Scripts/jquery.signalR-2.0.0.min.js" type="text/javascript"></script>
<script src='<%: ResolveClientUrl("~/signalr/hubs") %>'></script>
</asp:PlaceHolder>
<webopt:BundleReference runat="server" Path="~/Content/css" />
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<asp:ContentPlaceHolder ID="HeadHolder" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
<form runat="server">
<ajaxToolkit:ToolkitScriptManager runat="server"
ScriptMode="Auto"
EnablePageMethods="true"
EnablePartialRendering="true"
LoadScriptsBeforeUI="true"
AjaxFrameworkMode="Enabled"
RoleService-LoadRoles="false"
EnableCdn="false"
EnableScriptGlobalization="false">
<Scripts>
<asp:ScriptReference Name="bootstrap" />
<asp:ScriptReference Name="respond" />
<asp:ScriptReference Name="WebForms.js" Path="~/Scripts/WebForms/WebForms.js" />
<asp:ScriptReference Name="WebUIValidation.js" Path="~/Scripts/WebForms/WebUIValidation.js" />
<asp:ScriptReference Name="MenuStandards.js" Path="~/Scripts/WebForms/MenuStandards.js" />
<asp:ScriptReference Name="GridView.js" Path="~/Scripts/WebForms/GridView.js" />
<asp:ScriptReference Name="DetailsView.js" Path="~/Scripts/WebForms/DetailsView.js" />
<asp:ScriptReference Name="TreeView.js" Path="~/Scripts/WebForms/TreeView.js" />
<asp:ScriptReference Name="WebParts.js" Path="~/Scripts/WebForms/WebParts.js" />
<asp:ScriptReference Name="Focus.js" Path="~/Scripts/WebForms/Focus.js" />
<asp:ScriptReference Name="WebFormsBundle" />
</Scripts>
</ajaxToolkit:ToolkitScriptManager>
我做错了吗?我该如何解决这个问题?
并且......如果我将.NET编译调试标志设置为true
...
答案 0 :(得分:0)
答案 1 :(得分:0)
我知道它的旧线程,但对于遇到此问题的任何人。 我不知道为什么,但对我来说,唯一的解决方法是为 ToolkitScriptManager 设置 CombineScripts =&#34; False&#34; ,试一试