Showing posts with label Performance. Show all posts
Showing posts with label Performance. Show all posts

Thursday, October 2, 2008

WebResource.axd ?

If you are a developer who works extensively with COM controls, you might find this article useful in addressing some of the key issues that you may face while developing controls. Previously, in Microsoft ASP.NET 1.1, if you wanted to deploy static files such as .html files, .css files, image files, and script files by using a COM control, you had to create an installer and bundle these files together with the COM control. Although this worked, it presented many problems while deploying the control. For example, you may have had problems with version conflicts, with making sure that files such as images were deployed to the same location, or with corrupted or deleted static files that could cause the control to fail.

Web Resources in Microsoft ASP.NET 2.0 addresses these issues by letting the developer embed these resources in the assembly as .resources. To access these static resources, you can just call a method in the control's code.

Working with Web Resources in ASP.NET 2.0
  • http://support.microsoft.com/kb/910442
  • ASP.NET Cookieless Feature Works

    Our site was getting HTTP 302 errors and causing a major performance hit on our server.

    The cause was in our web.config file.

    We were setting cookies=AutoDetect which was causing multiple 302 errors.
    Setting cookies=UseCookies solved our performance issue.

    AutoDetect uses 302 to try to get additional information on the browsers cookie support.

    See attached MSDN doc for the "Understand How the ASP.NET Cookieless Feature Works"

    More...
    http://msdn.microsoft.com/en-us/library/aa479315.aspx

    ASP.Net Feeds