我正在尽量减少对ScriptResource.axd的调用,但失败了。下面是结果

Uaing .Net 4.0,AjaxControlToolkit ver4.1.60919.0和ScriptManager作为
<asp:ScriptManager ID="ScriptManager1" runat="server" ScriptMode="Release">
<CompositeScript>
<Scripts>
<asp:ScriptReference name="MicrosoftAjax.js"/>
<asp:ScriptReference name="MicrosoftAjaxWebForms.js"/>
<asp:ScriptReference name="Compat.Timer.Timer.js" assembly="AjaxControlToolkit, Version=4.1.60919.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"/>
<asp:ScriptReference name="Common.Common.js" assembly="AjaxControlToolkit, Version=4.1.60919.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"/>
<asp:ScriptReference name="Animation.Animations.js" assembly="AjaxControlToolkit, Version=4.1.60919.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"/>
<asp:ScriptReference name="ExtenderBase.BaseScripts.js" assembly="AjaxControlToolkit, Version=4.1.60919.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"/>
<asp:ScriptReference name="CollapsiblePanel.CollapsiblePanelBehavior.js" assembly="AjaxControlToolkit, Version=4.1.60919.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"/>
</Scripts>
</CompositeScript>
</asp:ScriptManager>我的网站运行得很好,但突然间客户开始抱怨它太慢了。我从客户端查看了这个网站,发现每一次点击都要花费大约的时间。10秒,无论是DB调用还是一个简单的循环,最多可达30。
我检查了一下,发现Application_BeginRequest和Application_EndRequest之间的时间还不到一秒。然后,在IE上,我了解到对ScriptResource.axd的调用很多,因此我试图减少这些调用。
请帮忙,让我知道这些吐露有什么问题。
编辑到目前为止还没有成功地减少对ScriptResource.axd的调用。我很确定
每一次单击都需要大约。10秒
因为这些对ScriptResource.axd的多次调用。如果是其他原因造成了如此多的延误,那么请引导我走向正确的方向。
发布于 2016-08-03 12:05:15
在一个DropDownList中,在客户端,大约有30,000条记录被加载。这真是出乎意料。我用一个查找屏幕替换了这个DropDownList,一切都如期而至。
https://stackoverflow.com/questions/36198461
复制相似问题