ASP.NET Web应用程序 - WebResource.axd的和的ScriptResource.axd文件 - 加载时间问题 [英] ASP.NET web application - WebResource.axd and ScriptResource.axd files - Loading time issue

查看:2138
本文介绍了ASP.NET Web应用程序 - WebResource.axd的和的ScriptResource.axd文件 - 加载时间问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



      我们正在建设与C#.NET语言作为一个ASP.NET应用程序。

. Hi, We are building an ASP.NET application with C#.net as language.

下面,当在IIS呈现一个页面&放大器;当我们分析页面code。与YSlow的工具,它显示了很多的WebResource.axd和的ScriptResource.axd文件(因为我们在页面中提及许多脚本文件)。

Here, when the IIS renders a page & when we analyze the page code with YSlow tool it shows many WebResource.axd and ScriptResource.axd files (as we are referring many script files in the page).

服务器端code是执行速度快,但这些个.axd文件加载需要时间。
所以,请你指导我在这,如果有优化或SUP preSS这些AXD文件的方式?

Server-side code is executing fast but loading of these .axd files is taking time. So would you please guide me on this, if there is a way to optimize or suppress these axd files?

如果将是巨大的,如果你还可以提供一个参考文件或网页的引用(如果需要)。

If would be great if you could also provide a reference document or web references (If needed).

非常感谢,
问候。

Many Thanks, Regards.

推荐答案

WebResource.axd的和<一个href=\"http://msdn.microsoft.com/en-us/library/system.web.handlers.scriptresourcehandler.aspx\">ScriptResource.axd引用在.NET Framework中嵌入的资源。 WebResource.axd的脚本可能是web表单和验证时的ScriptResource.axd是 ASP.NET AJAX

WebResource.axd and ScriptResource.axd references are embedded resources in the .NET Framework. WebResource.axd scripts are probably for web forms and validation while ScriptResource.axd is for ASP.NET AJAX.

您可以使用<一个结合的ScriptResource.axd脚本到一个包括href=\"http://www.asp.net/AJAX/AjaxControlToolkit/Samples/Walkthrough/OtherNeatStuff.aspx\">ToolkitScriptManager ( AJAX控件工具包的一部分)。

You can combine the ScriptResource.axd scripts into one include by using the ToolkitScriptManager (part of the ASP.NET AJAX Control Toolkit).

我不知道的方式向WebResource.axd的脚本结合起来。

I'm not sure of a way to combine the WebResource.axd scripts.

请参阅此<一个href=\"http://stackoverflow.com/questions/505416/how-do-i-combine-webresource-axd-and-scriptresource-axd-files-so-as-to-result-in\">question更多关于合并脚本。

See this question for more on combining scripts.

这篇关于ASP.NET Web应用程序 - WebResource.axd的和的ScriptResource.axd文件 - 加载时间问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆