ASP.NET Best Practices for High Performance Applications
Posted on November 19, 2007 by tobject
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.
- Plan and research before you develop
- String concatenation
- Avoid round trips to the server
- Save viewstate only when necessary
- Use session variables carefully
- Use Server.Transfer
- Use server controls when appropriate and avoid creating deeply nested controls
- Choose the data viewing control appropriate for your solution
- Optimize code and exception handling
- Use a DataReader for fast and efficient data binding
- Use paging efficiently
- Explicitly Dispose or Close all the resources
- Disable tracing and debugging
- Precompile pages and disable AutoEventWireup
- Use stored procedures and indexes
Here is the full ASP.NET Best Practices for High Performance Applications article.