How to create a dll in dotnet

To get something you never had, you have to do something you never did-Bimal Patel

Thursday, November 18, 2010

Best Practices to increase the performance of Asp.net website

For any webApplication performance is the key area where any developer need to look in .
Here are the  best practices to increase the performance of the application using Asp.net
  1. Always set debug=”false” in web.config production environment.
  2. Always set trace=”false” in web.config production environment
  3.  Always use precompiled version of your code and also prefer web application project over website.
  4. Always compile your project in Release Mode before uploading application to production environment.
  5. Decrease your html kb as much as you can for that use tables less html using div’s and if possible then do not give big name to your control it will increase your html kb as asp.net uses client Id to differentiate all the controls.
  6. Use caching wherever posssible
  7. Remove blank spaces from your html it will increase your kb.
  8. use master pages to increase your performance.
  9. Prefer database reader over dataset unless and until you have specific reason to use database.
  10. Disable view state for your controls if possible.
  11. User Server.Transfer instead of response.redirect.
  12. Always use inproc session state if possible.
  13. Use Ajax for your application wisely. Lots of Ajax calls for a page will also decrease your performance.
  14. User System.Text.StringBuilder for string concatenation its 4 times more faster then the normal strings.
  15. Right JavaScript in .Js files and place it as bottom of the application.
  16. Use Separate CSS files for styling of application.
  17. Use coustom  paging over normal paging while displaying huge amount of data in datacontrols
  18. Use Client Side Scripts for validations
  19. Use Stored Procedures Wherever Possible

No comments:

Post a Comment