Thursday, December 2, 2010

Using ASP.NET Ajax from the CDN

When using ASP.NET 4, you can redirect all requests for ASP.NET framework scripts to the CDN. Retrieving scripts from the CDN instead of your local web server can substantially improve the performance of public ASP.NET websites.


Use the ScriptManager EnableCDN property to redirect all ASP.NET framework script requests to the Microsoft Ajax CDN:

  1. <asp:ScriptManager  
  2.   ID="ScriptManager1"  
  3.   EnableCdn="true"  
  4.   Runat="Server" />  

No comments:

Post a Comment