在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
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. |
请发表评论