Top Ten Tips for Programming ASP.NET

More details in 
http://www.ondotnet.com/pub/a/dotnet/2002/04/22/asptips.html

Top ten tips for programming ASP.NET
1. Use Visual Studio .NET, but do not use default names for anything except trivial or non-referenced objects.

2.Even if coding outside of Visual Studio .NET, use code-behind files for a performance benefit the first time a page is requested.

3. Test for postback on page load.

4.Use the StringBuilder Class

5.Use server-side controls only when necessary.

6.To navigate to a URL without posting the form, use a HyperLink control; to post the form and then navigate, use a LinkButton.

7. Comment your code.
Alzheimer's Law of Programming:
 Looking at code you wrote more than two weeks ago is like looking at code you are seeing for the first time.


8.Trace page execution using the trace methods and trace attribute in the Page directive.

9.Use the Stored Procedure

10. Use the Command Prompt.

posted on 2004-06-18 15:10  番茄鸡蛋面  阅读(639)  评论(0编辑  收藏  举报

导航