ASP Getting Started tutorials-static and Dynamic Web pages

Source: Internet
Author: User

The difference between a static web page and a Dynamic Web page is that it is handled differently by the Web server. Understanding this distinction is essential for understanding the concept of ASP.

1. Static Web page

A static web page is a standard HTML file with a file name extension of. htm or. html. It can contain HTML tags, text, Jave applet, client script, and client ActiveX controls, but this Web page does not contain any server-side scripts, and each line of HTML code in the page is written by a web designer before it is placed on a Web server. No changes are made after they are placed on the Web server, so it is called a static Web page.

The process flow of static Web pages is as follows:

Step 1:web the browser to request a static Web page.

Step 2:web server to find static Web pages.

Step 3:web the server sends the static Web page to the requesting browser.

When a user clicks a link on a Web page, or selects a bookmark in a browser, or enters a URL address in the Address box of the browser and clicks go, the browser sends a page request to the Web server.

The Web server receives the request, determines the HTML file request through the file name extension (. htm or HTML), and obtains the appropriate HTML file from the disk or storage.

The Web server sends the HTML file to the browser, which is interpreted by the browser and displays the results in a browser window.

2. Dynamic Web page

The difference between a dynamic Web page and a static Web page is that some scripts in a dynamic Web page can only run on a Web server, and no script in a static web page can run on a Web service. When a Web server receives a request for a static Web page, the server sends the page to the requesting browser without further processing. When a Web server receives a request for a dynamic Web page, it makes a different response: it passes the page to a special software extension called an application server, which is then responsible for completing the page. The Application service software is installed and running on the same computer as the Web server software. The processing process of the Dynamic Web page is as follows:

Step 1:web the browser to request a dynamic Web page.

Step 2:web the server to find the page and pass it to the application server.

Step 3: The application server looks for script commands in the page and finishes the page.

Step 4: The application server passes the completed page back to the Web server.

Step 5:web The server sends the completed page to the requesting browser.

When a user clicks a link on a Web page, selects a bookmark in the browser, or enters a URL address in the Address box of the browser and clicks go, the browser sends a page request to the Web server.

The Web server receives the request, determines the Dynamic Web page file request through the file name extension (. asp), obtains the appropriate page from the disk or storage, and then passes the page to the appropriate application server.

The application server looks for script commands in the page, and ends the page by executing these script commands on the server, and then deletes the script code from the page, resulting in a static web page.

The application server passes the generated pages back to the Web server.

The Web server sends the page to the browser, and when the page arrives at the client computer, it contains all the pure HTML code that is interpreted by the Web browser and displays the results in a browser window.

See the full set of ASP Getting started tutorials

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.