28 ASP.NET 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.


Reference: http://revolution-of-web.blogspot.com/


Comments

Author: Arunkumar B09 Mar 2010 Member Level: Silver   Points : 1

its great yaar. Anyone can work in asp.net, but few of them knows how can work it efficiently. Those people should know this

Author: Asif Huddani12 Mar 2010 Member Level: Gold   Points : 0

nice collection..

Author: Naveen Kumar17 Mar 2010 Member Level: Gold   Points : 0

Really Nice..
good luck..

Author: Naveen Kumar17 Mar 2010 Member Level: Gold   Points : 0

nice artiical sir..

Author: Narayana24 Jun 2010 Member Level: Gold   Points : 1


Hi,

your tips are very good and also i really thankfull to you for sharing the valuable tips with our team members.

Regards
Narayana

Author: jatin lalcheta09 Jul 2010 Member Level: Gold   Points : 0

Hi,
Your tips are very useful for Experience and Fresher.

Regards,
Jatin

Author: Pal (Parthiv) Patel12 Jul 2010 Member Level: Gold   Points : 1

Thanks u so much

its too good

pleas keep it up man


Regards:
Pal (Parthiv) Patel
www.palpatel090.blogspot.com
www.aspdotnetmania.blogspot.com

Author: Lincy Lucy20 Jul 2010 Member Level: Silver   Points : 2

Nishith Sir,

Your articles are really informative. I request you to post simillar articles to improve our knowledge.

The 28 tips that you covered in this articles are essentials for every asp.net developers.

Being an asp.net developer for last 3 year, I realize that I follow very less of them. I'll try to implement all for upcoming projects.

Thanks again
lincy lucy

Author: vasanth10 Aug 2010 Member Level: Silver   Points : 1

Hi,

Thank you very much for Your tips which are very useful and informative for any asp.net developer for Experience and Fresher.

Author: vasanth10 Aug 2010 Member Level: Silver   Points : 1

Hi,

Thank you very much for Your tips which are very useful and informative for any asp.net developer for Experience and Fresher.



  • 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:
    Email: