Improve the performance of an ASP.NET application

前端 未结 7 538
离开以前
离开以前 2020-12-29 00:32

How to improve the performance of an ASP.NET application? Which are are the fields I should take care? The application includes DB connections and Image Parsing etc.

相关标签:
7条回答
  • 2020-12-29 00:46

    Use the .NET CLR profiler to determine where optimization will be useful.

    http://msdn.microsoft.com/en-us/magazine/cc301839.aspx

    0 讨论(0)
  • 2020-12-29 00:53
    1. HTTP Compression
    2. Disable Possible ViewState
    3. Changes in the Web.Config File : Use page caching, Remove unnecessary httpModules, Turn off trace, Disabled automatic save for profiles, Set debug=false.
    4. Implement Cache Dependency
    5. Optimize Stylesheets
    6. Optimize JavaScript
    7. JS and CSS File Position
    8. server.transfer() Instead of response.redirect()
    9. Client-side Script for Validation
    0 讨论(0)
  • 2020-12-29 00:54

    The book Improving .NET Application Performance and Scalability has a chapter on Improving ASP.NET Performance, that might be worth reading. The full book is online at MSDN, and is also available as a PDF download.

    0 讨论(0)
  • 2020-12-29 00:56

    I wrote a book about this that was just released, called Ultra-Fast ASP.NET: Build Ultra-Fast and Ultra-Scalable web sites using ASP.NET and SQL Server.

    The book is about 500 pages long, so there's a fair amount you can do, at all tiers: client (HTML/JavaScript structure), IIS, ASP.NET, SQL Server, infrastructure, etc.

    0 讨论(0)
  • 2020-12-29 00:56

    try avoiding unnecessary postbacks to pages, there are a lot of features you can implement by using things like jQuery or ExtJs framework. Learn how to do AJAX calls and pass info between your app and the server via JSON result sets.

    Also, install apps like FireBug and YSlow and use these to analyze your application and follow their recommendations on how to speed up your app. Good luck!

    0 讨论(0)
  • 2020-12-29 01:04

    10 Tips for Writing High-Performance Web Applications

    20 Tips to Improve ASP.net Application Performance

    Bye

    0 讨论(0)
提交回复
热议问题