After reading "How to make your website" Dynamic "", is it a heart? Have you eager to build your own dynamic website? This article will be based on Active Server Pages, to fully display the steps and techniques of making dynamic business websites and through a lot of examples, let you lazy "network" in constant theories and practices ...
The previous chapter briefly introduces some methods and production tools for establishing a dynamic website. This chapter will open to everyone in the step-by-step ASP dynamic website to open to you step by step. In order to enable you to fully, grasp the development techniques of ASP, this article will take a contributing form in the future, and your hand teaches you how to build your own ASP dynamic website. Since this paper is written according to his own learning and practical experience and combines some foreign information, there will be some biased, I hope you will forgive. If you find out what this article is in this article, please inform the author in time, thank you.
Microsoft Active Server Pages, that is, what we call, is actually a set of Microsoft's server-side script environments. ASP is included in IIS 3.0 and 4.0. With ASP we can combine HTML web pages, ASP instructions, and ActiveX components to establish dynamics. Interactive and efficient web server applications. With ASP, you don't have to worry if the customer's browser can run the code you write, because all programs will be executed on the server, including all scripts embedded in ordinary HTML. When the program is executed, the server only returns the result of the execution to the client browser, which also reduces the burden on the client browser, which greatly improves the speed of interaction. Some features unique to Active Server Pages are listed below:
1. Use the simple and easy-to-understand scripting languages such as VBScript, JScript, to quickly complete the website's application.
2. No compile is compiled, easy to write, can be executed directly on the server side.
3. Use a normal text editor, such as Windows notepad, you can edit design.
4. Unrelated to the browser (Browser Independence), the user can browse the web content designed by the Active Server Pages as designed by using a browser that can perform an HTML code. The scripting language (VBScript, JScript) used by Active Server Pages is executed on the web server side, and the user's browser does not need to be able to perform these scripting languages.
5.active Server Pages can be compatible with any ActiveX Scripting language. In addition to the use of VBScript or JScript language, other scripting languages provided by third parties are used in a way, such as REXX, Perl, TCL, etc. The script engine is a COM (Component Object Model) object for handling the script.
6. The source of theActive Server Pages will not be transmitted to the customer browser, so that the source program can be avoided by others and improve the security of the program.
7. Use the server-side script to generate the client's script.
8. Object-Oriented.
9.activeX Server Components has unlimited expandability. You can use Visual Basic, Java, Visual C , COBOL and other programming languages to write the ActiveX Server Component you need.
The wonderful thing of the ASP is really auction. Let's take a seat belt, I will lead you to the dream world of ASP. First, let's take a look at the environment you need to run the 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
As mentioned earlier, the ASP program does not need to be compiled, and the control part of the ASP program is designed to use VBScript, JScript, and the scriptor will send a set of commands to the Script. Script interpreter (ie, scripting engine), translates by a script interpreter and converts it into a command that the server can perform. Of course, like other programming languages, the writing of the ASP program follows a certain rule. If you want to write an ASP program using your favorite scripting language, then you must have a scripting interpreter that can explain this scripting language. . When you install ASP, the system provides two scripting languages: VBSRCIPT and JScript, while VBScript is used as a default scripting language in the system. You can also change the system's default scripting language according to your preferences, about how to change the system's default scripting language, see "Using Scripting Language in ASP".
The ASP itself is not a scripting language, which only provides an environment that makes the script program in the HTML page to run. However, to learn ASP, you must master its grammar and rules. Let us start to know and learn Active Server Pages step by step.
The ASP program actually exists on the web server with the plain text form of the extended .asp, you can open it with any text editor, and the ASP program can contain plain text, HTML tag, and script commands. You only need to put the .asp program in a virtual directory of the web server (this directory must have executable permissions), you can access the ASP program by WWW. To learn the design of the ASP program, you must master the script preparation, then what is the script? In fact, the script is composed of a series of script commands, such as the general program, the script can assign a value to a variable, you can command the web server to send a value to the customer browser, you can also define a series of commands into a process . To write scripts, you have to be familiar with at least one script language, such as VBScript. Scripting language is a special language between HTML and programming languages such as Java, Visual Basic, C , although it is closer to the latter, but it does not have a complex, rigorous grammar and rules. . The script running environment provided by ASPs can support a variety of scripting languages, such as JScript, Rexx, Perl, etc., which undoubtedly provides a wide range of ASP programmers. The emergence of ASP has made the majority of web designers do not have to worry about whether the customer browser supports. In fact, even if you use different scripting languages in the same .asp file, you don't have to worry about it, because everything will be The server side is performed, and the client browser is just a result of a program execution, and you only need to declare different scripting languages in .asp. Below is a typical example of using two scripting languages in the same .asp file: