1: What is ASP
Active Server Pages (ASP, active server page)
It is a programming environment in which HTML, scripting languages, and components can be mixed to create powerful server-side Internet applications.
If you've ever created a site that mixed HTML, scripting languages, and components, you can add ASP code to it.
You can create an HTML user interface by adding script commands to an HTML page, and you can also include some business logic rules by using components.
Components can be called by scripts or other components.
ASP web pages require the support of corresponding Web servers to run normally. The WEB servers are mainly PWS and IIS.
2: ASP operating environment
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
Personal Web Server, referred to as PWS for short, is a personal Web server. It is developed for individuals to publish web pages. It is suitable for small-scale company intranets. It only supports 10 concurrent users and can only accommodate one Web site. It provides basic WWW services and simple WEB management, supports ADO access to the database. PWS runs on the Windows 9x/Me platform and is often used as a Web server when learning, writing, and debugging ASP pages.
When the ASP page is finally run, IIS 5.0 is generally selected as the ASP Web server to parse the ASP page. The operating system should be Windows 2000 Server or Advanced Server. If you only want to learn or debug ASP pages, you can use PWS under the Win9X platform or IIS under Windows 2000 Professional. It is recommended that you also install the Win2000 Server operating system and IIS when studying.
Three: Characteristics and principles of ASP
Web page files are stored in the Web server. When you type a URL in the address bar of the client browser and press Enter, an HTTP request is triggered to the server. The server will make the request based on the extension of the requested web page. Decide how to respond.
ASP web pages run on the server side. The web page source code viewed on the client side is the page source code dynamically generated by ASP, not the code of the ASP web page itself. Therefore, the ASP web page has high confidentiality. In addition, because ASP The output is an HTML page in a standard format, so there is no problem that the browser does not support it. HTML runs in the client browser and is interpreted and executed by the browser to display the final page content.
ASP can dynamically form page content based on the results of code execution, so ASP pages are also called dynamic web pages.
1. Use simple and easy-to-understand scripting languages such as VBScript and JScript, combined with HTML code, to quickly complete website applications.
2. No need to compile, easy to write, and can be executed directly on the server side.
3. Use an ordinary text editor, such as Windows Notepad, to edit and design.
4. Browser Independence, as long as the client uses a browser that can execute HTML code, it can browse the web content designed by Active Server Pages. The script languages (VBScript, Jscript) used by Active Server Pages are all executed on the WEB server side, and the client's browser does not need to be able to execute these script languages.
5.Active Server Pages is compatible with any ActiveX scripting language. In addition to using VBScript or JScript language to design, you can also use other scripting languages provided by third parties 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's browser, thus preventing the source program from being plagiarized by others and improving 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.
When ASP functionality is integrated into a Web site, the following results usually occur:
1. When the user calls out the site content, the default page extension is .asp.
2. The browser requests the ASP file from the server.
3. The server-side script starts running ASP.
4. The ASP file is processed in order from top to bottom, executing script commands and executing HTML page content.
5. The page information is sent to the browser.
Original address: http://www.kouke5.com/biancheng/asp/2970.html