This article will focus on how to establish an IIS-based ASP dynamic website to reveal the true mystery of dynamic commercial website design step by step. In order to enable you to fully and meticulously master the development skills of ASP, this article will be serialized in the future and teach you how to build your own ASP dynamic website. Since this article was written by the author based on his own learning and practical experience and combined with some foreign language materials, there will inevitably be some bias. I hope you can forgive me.
Microsoft Active Server Pages, which is what we call ASP, is actually a server-side scripting environment developed by Microsoft. ASP is contained in IIS 3.0 and 4.0. Through ASP, we can combine HTML web pages, ASP instructions and ActiveX components to create dynamic, interactive and efficient WEB server applications. With ASP you don't have to worry about whether the client's browser can run the code you wrote, because all programs will be executed on the server side, including all scripting programs embedded in plain HTML. After the program is executed, the server only returns the execution result to the client browser, which reduces the burden on the client browser and greatly improves the speed of interaction.
The following lists some unique features of Active Server Pages:
1. Use simple and easy-to-understand scripting languages such as VBScript and JScript, combined with HTML code to quickly complete the website's application.
2. No compile is required, it is easy to write and can be executed directly on the server side.
3. Use a normal text editor, such as Windows Notepad, to edit and design.
4. Browser Independence is not related to the browser. The user side can browse the web page content designed by Active Server Pages as long as it uses a browser that can execute HTML code. The scripting languages (VBScript and Jscript) used by Active Server Pages are all executed on the WEB server side, and the browser on the user side does not need to be able to execute these scripting languages.
5. Active Server Pages can be compatible with any ActiveX scripting language. In addition to using VBScript or JScript languages, other scripting languages provided by third parties are also used through plug-in, such as REXX, Perl, Tcl, etc. The script engine is a COM (Component Object Model) object that handles script programs.
6. The source program of Active Server Pages will not be transmitted to the client browser, so the source program written can be avoided by others and improve the security of the program.
7. Server-side scripts can be used to generate client-side scripts.
8. Object-oriented.
9. ActiveX Server Components (ActiveX Server Components) have unlimited scalability. You can use Visual Basic, Java, Visual C++, COBOL and other programming languages to write the ActiveX Server Component you need.
There are so many wonders of ASP. Please wear your seat belts below and I will lead you into the dream world of ASP. First, let's take a look at the environment required to run ASP:
·Microsoft Internet Information Server version 3.0/4.0 on Windows NT Server ·Microsoft Peer Web Services Version 3.0 on Windows NT Workstation
·Microsoft Personal Web Server on Windows 95/98
Unlike general programs, .asp programs do not need to be compiled. The control part of the ASP program is designed using script languages such as VBScript and JScript. When executing an ASP program, the script program sends a complete set of commands to the script interpreter (i.e., the script engine), and translates it by the script interpreter and converts it into commands that the server can execute. Of course, like other programming languages, ASP programs also follow certain rules. If you want to write ASP programs in your favorite scripting language, then you must have a script interpreter on your server that can interpret this scripting language.