[Repost] ASP Development Specifications

by yangmindong on 2007-07-23 08:16:16

Remember that the page should be divided into modules:

Module One: Receive parameters. [There may be submissions from different pages to the same page, and it is also possible to handle which form item takes precedence.]

Module Two: Define global variables.

Module Three: Write processing code (try to include all the code within functions, see Notes One attached to the page). - By this point, the main part of the ASP code is completed.

Module Four: Pure HTML code, using the values stored in global variables to generate the page.

Module Five (Note): Clearly write the page logic at the top of the page (how to receive and process data).

Advantages: Easy to maintain. Independent modules make it easy to reuse in similar pages.