【正文】
ld like to use some special software, you can use Microsoft visual InterDev, which helps you to easily create an ASP page by giving you nice highlights and debugging dialogue boxes (4). I hope that you already have an idea of what an ASP file is and how it is different from an HTML file. In the next step, you will learn how ASP works. Let’s go. How does it work? As you have learned, scripts in an ASP file are serverside scripts, which means that the scripts are processed on the server and then the result of the scripts will be converted to HTML before sending to the web browser. To illustrate, let’s take a look at this table to pare the process of retrieving an HTML page and an ASP page (5). HTML process ASP process 1. A user requests a web page (., in the web browser. 2. The browser finds the appropriate web server, and asks for the required page. 3. The web server locates the required page and sends it back to the browser as HTML text. 4. The browser executes the client side scripting (like JavaScripts) determining how to display the results 1. A user requests a web page (., in the web browser. 2. The browser finds the appropriate web server (like IIS or PWS), and asks for the required page. 3. The web server locates the required page, and parses out the ASP code within the ASP script delimiters (%…%), produces a standard HTML page. The server sends that HTML page back to the browser, so the user cannot see ASP code. 4. The browser executes the client side scripting (like JavaScripts) determining how to display the results 本科畢業(yè)設(shè)計(論文)外文翻譯 8 As you can see, the whole process of the two is quite similar. Since ASP is a serverside technology, the required page is executed on the server before the HTML is created and served to the client. To make it clearer, Figure1 shows the processing behind a browser request to an ASP page (6). For example, a client types in a URL into your browser. The browser requests the ASP page from the web server. The server proceeds the file with “.asp” extension to ASP Engine in which Objects or ActiveX Components can be used to extend the web server with applicationspecific functionality. In addition, ASP will use ADO to connect to a database (SQL, Access, Oracle, etc.) to pull out the relevant data, such as the current weather in a specific area. Thus, a different page is generated according to the area specified and time that the page is accessed. Then, the server generates HTML tags before sending it back to the client. Therefore, when you view the source of an ASP file, you will not see any different from a standard HTML file. ASP includes five buildin o