Tips tips !!!!!!!!!!!!!!

28 Tips For ASP.NET Programming

1) Go for Javascript validations instead of validation controls.

2) Use Javascript instead of VBscript..

3) Minimize the use of Forms authentication.

4) Use Connection Pooling and Object Pooling.

5) Turn off Tracing unless until required.

6) Turn off Session State, if not required.

7) Disable View State of a Page if possible.

8) Set debug=false in web.config.

9) Avoid Response.Redirect as many places .

10) Use the String builder to concatenate string.

11) Avoid throwing exceptions. try to handle the exceptions without try catch.

12) Use Finally Method to kill resources.

13) Avoid unnecessary round trips to the server.

14) Use Gzip Compression.

15) Use Page Output Caching and Proxy Servers.

16) Use Per-Request Caching.

17) Use Page.ISPostBack.

18) Avoid Unnecessary Indirection.

19) Use "ArrayLists" in place of arrays.

20) Place StyleSheets into the Header.

21) Put Scripts to the end of Document.

22) Make JavaScript and CSS External

23) Use DataReader instead of Dataset.

24) Make Enableviewstate property as false for the components(particularly for heavy items like datagrid, datalist etc) if it is not necessary.

25) Use xmlhttprequest object or scriptmanager to minimize post backs.

26) Declare regions for each section of codes.

27) Try to use datarepeater than any other data controls.

28) Use skins files.

Related Articles

Optimizing ASP.NET Web application performance through Bundling and Minification Part-2

In the first article we had seen how Bundling helps us to minimize the number of HTTP requests sent from browser to improve ASP.NET web page performance. Now I am going to cover Minification Part which helps to reduce the size of requested resources to improve ASP.NET web page performance in terms of load time of CSS or JavaScript files(resources).

More articles: Tips Coding guidelines Database design tips


No responses found. Be the first to comment...

  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name: