Programming | Tips to avoid using embedded ASPs too much.
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.