Top Ten Tips for programming ASP. NET

Source: Internet
Author: User
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 partition t 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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.