ASP.NET Best Practices for High Performance Applications

As i’m just starting to optimize my asp.net site, this article will help me building a simple checklist. Saved for personal reference :)

ASP.NET is much more powerful than classic ASP, however it is important to understand how to use that power to build highly efficient, reliable and robust applications. In this article, I tried to highlight the key tips you can use to maximize the performance of your ASP.NET pages. The list can be much longer, I am only emphasizing the most important ones.

  1. Plan and research before you develop
  2. String concatenation
  3. Avoid round trips to the server
  4. Save viewstate only when necessary
  5. Use session variables carefully
  6. Use Server.Transfer
  7. Use server controls when appropriate and avoid creating deeply nested controls
  8. Choose the data viewing control appropriate for your solution
  9. Optimize code and exception handling
  10. Use a DataReader for fast and efficient data binding
  11. Use paging efficiently
  12. Explicitly Dispose or Close all the resources
  13. Disable tracing and debugging
  14. Precompile pages and disable AutoEventWireup
  15. Use stored procedures and indexes

Here is the full ASP.NET Best Practices for High Performance Applications article.

Leave a Reply