.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

ASP.NET web application - WebResource.axd and ScriptResource.axd files - Loading time issue

Posted By: Venkat     Posted Date: September 16, 2009    Points:2   Category :ASP.Net
.
Hi,
We are building an ASP.NET application with C#.net as language.

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).

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.

Responses
Author: Amit Mehra             
Posted Date: September 16, 2009     Points: 5   

HI Venkat,

You can make this .xsd file cached, you can add this lines to your web.config file and see the difference it will compress the script file and cached into the server.

To add scriptResourceHandler tag you need to place inside system.web.extensions tag for eg.


<system.web.extensions>
<scripting>

<scriptResourceHandler enableCompression="true" enableCaching="true" />

</scripting>
</system.web.extensions>


Thanks,
Amit
Please "Mark As Answer " if this post help you.


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend