iis| Program | skill | design | Execution 1. Average before and after-end program execution load
The purpose of ASP is not to replace the script on the front page, instead, the front and back end should coordinate with each other: the work that can be performed by the front end does not increase the burden on the back end. Don't forget, a Web server may have to respond to dozens of-bit, with hundreds of-bit or even thousands of-bit users browsing, if the logical processing work is distributed evenly across the front and back ends, the backend Web server will be able to respond to front-end requirements more quickly, or to serve more consumers.
For example, the work of checking the correctness or completeness of a form's data should be done in front of the script, as it would reduce the bandwidth used by the data and reduce the burden on the Web server. Again, such as the clock on the Web page, just record the user browsing time, or due to time, seasonal changes in the Web page special effects or display greetings, should also let the script to complete the front.
2. Selected variable type
Unless really necessary, minimize the chance that global variables appear in ASP files. Because IIS stores the relevant data for a local variable in a specific table in the system at the parsing stage of an ASP program, it is then available for the ASP program friend to refer to. However, global variables must wait for the execution phase of an ASP program to perform such processing, so the efficiency of using global variables is lower than that of local variables.
Because of the nature, the local variable efficiency of almost any program language is higher than the global. Of course, if it is really necessary, even if the efficiency is worse to use; just want to remind you, before using, carefully weigh the status of variables, and then give the most appropriate range of activities.