ASP application design skills

zhaozj2021-02-16  65

1. The biggest purpose of the web application directory and file structure to establish a directory classification is to easily manage a wide variety of file types in the web application (.htm, .html or .asp) And Global.asa (must be placed in a virtual root directory) b. Content Directory c. Header Directory D. Multimedia File Directory E. Component Directory F. Data Directory

2. ASP file design practices a. Transfer HTTP header to add header information in the ASP file. If there is no, IIS will automatically make up the header information, this will consume additional processing time b. Do not use the HTML and ASP Script doping to use c. @ Predecessor command Use DW to create an ASP page will be added automatically @ Guide command, contains Code and LanguageD. ASP introduction file (include file)

e. Option Explicit can save some troubles, also help the execution efficiency of the program. F. Writing the ASP program programming is not just writing program code that can be executed or perform efficiency, and consider teamwork, programs and procedures Between, or communicate between people and the costs required for future maintenance procedures. i. Let the program code set in the area II. Define the program required by the ASP file Recommended to place all the programs used in the ASP file (including Function and Sub), it is best to place the program on the final or forehead of the program on the ASP file.

3. Execute IIS and Tech of the design ASP program a. Before the average distribution, the backend program performs the load before and after the load, you can work by the front-end, do not increase the burden on the backend B. Select variable type - The local variable efficiency of almost any program language is higher than the global variable. The maximum variable D. and server.createObject applicable time: is limited to "declaration", unless the program code is really called The declared components, otherwise the ASP execution environment does not establish the declared components; but server.createObject makes the ASP execution environment to establish component E. Related to bufferf. To distinguish .htm and .asp file: In IIS5, no Any server-side script's execution efficiency and .html are the same (Microsoft's official statement) g. Debug: Microsoft Script debuggerh. Web application executive space IIS5 in IIS5: Independence: WEB applications error, do not affect IIS itself and other web applications; Disadvantages: More memory resources are occupied. Make a choice between "speed" and "stability". "Zhong (shared)" means that this web application is a region (Pool) with other related or unrelated web applications, which does not cause IIS crash i. Using & Connection string: The principle of the VBScript compiler is " " specifically for numerical processing, so the principle of data conversion is to convert a numerical type; and "&" is specifically used for string connectivity, so the principle of data conversion is to turn Bastroke type

转载请注明原文地址:https://www.9cbs.com/read-19557.html

New Post(0)
CopyRight © 2020 All Rights Reserved
Processed: 0.036, SQL: 9