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.

转载于:https://www.cnblogs.com/sprming/archive/2004/06/18/16861.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值