ASP development specification

xiaoxiao2021-03-06  127

ASP Development Specification - Write this thing, please give me a lot of advice, so I will eat less when I have developed.

1. Single page Writing Specification: Remember the page to be divided into modules: First module: Receive parameters. [It is possible to submit to the same page from different pages; it may also appear which priority processing of two form items. Second module: Define global variables. The third module: Write processing code (try to include the code into the function, see the page notes.). - The main part of this ASP code is completed. The fourth module: pure HTML code, generates a page with a value stored in the global variable. Fifth (note): Write the page logic on the page header. (How to receive, process.) Advantages: Easy to maintain. The module is independent, which is easy to reuse similar pages.

2, the whole station document construction specification: 1. After the engineering takes over, first watch the static page, master the logic and browsing order. 2. Extracting the place in the page to be embedded. 3. Extract the header file, the tail file, and the left menu bar to make an embedded file. 4. Divide the page structure and make a template file. - Copy it in the future, then you can use it directly. Note: Don't rush to write a page unless you take over a small project, or if the user needs are very clear and will not change again, otherwise, keep the page code readability is very important! (What is your mood? Let's take a look at the potential danger!) - Because each of us is very clear about the code you wrote, it is more difficult to read the code written by others. And, due to the changes in customer demand, modification and even overturning the original design is more common. So pay attention to keep the later people quickly read and make it easy to modify. ] [At least to add comments on the page head, there is also an important part of the code in the middle of the code, it is necessary to add some explanatory comments. ]

All we do is just to: increasing the reusability of portable, making logic clear, easy to maintain, adapting to the changes in user needs, and completing as soon as possible, reducing useless work. --------------------------------------

Note 1: Third Module writing instructions. "ASP page write structure" 1. write a note 2. Write embedding files. 3. Write a block of ASP code (from COM) - Note: Complex pages, try to encapsulate different COM's operations in a separate function; - The end is called in the end of the page, reading the function directly The processing data (already assigned to the global variable) - the legitimacy check is performed before the function is called.

Note 2: The fourth module is written. "1)" 1) of the HTML code section is best not to make the page ASP code and HTML code mix together, - feel compared. 2) Get the processing result of the ASP by obtaining the data of the global variable. 3) About the client JavaScript: The legitimacy test is required before the form is submitted. Write the previous, function name: frmCheck1 (); FRMCHECK1 (); the drop-down box must have and the hidden button synchronize, write a separate small function, place below the button. For large INNERHTML type client interaction, write the code to the corresponding

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

New Post(0)