Train to speed up, ASP to refuel! ASP programming considerations, ASP Skills (BIS)

Source: Internet
Author: User
Avoid excessive use of embedded ASP.
Always combine multiple consecutive Response.Write into a single statement.
Never use functions to encapsulate Response.Write in order to add CRLF.
If you must format the output HTML, add the CRLF directly to the end of the Response.Write statement.
Buffering is always enabled through the server configuration.
Using moderation, ASP annotations do not affect performance or have little impact.
Set the default scripting language for the server to the language used in the Web site.
Do not declare a language type on the page unless you want to use a Non-default scripting language.
In VBScript, always use option Explicit.
If the application or page session state is irrelevant, always close it.
The include file is used only if your code can be shared across multiple pages.
If some of the code in the page is to be used more than once, encapsulate this part of the code with a function.
If you can, move the variable declaration into the function at the same time.
Use error control only if you may experience an error that cannot be tested or controlled.
A transaction is used only if two or more operations must be treated as units.
The following can be used as a comprehensive guideline for coding:
Avoid redundancy-do not set properties that have been set by default.
Limit the number of function calls.
Limit the use of your code precisely.

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.