[ASP. NET Notes] 1. Basic Web Knowledge

Source: Internet
Author: User
1: http protocol:
2: Web Server:
3: Concept of static Web pages
4: Concept of dynamic web pages

HTTP protocol:
HTTP (Hypertext Transfer Protocol) is a hypertext transfer protocol that transfers information over the Internet.
To communicate with each other on any web page, we must follow this Protocol. When we enter a website in the address bar through the IE browser, the Internet searches for the webpage of the corresponding website through this protocol, HTTP is automatically installed when Windows is installed.

Web Server:
1: What is a web server?
A: The Web server is not a physical machine. If you install IIS (Internet Information Service) on that computer, the computer is a web server,
B: We usually divide web page execution into clients and servers. The end where the web page is stored is called a server, and the end where the web page is viewed is the client.
C: To enable the client to view the webpage of the server through IE, ISS must be installed on the server. That is to say, the server must be the end of IIS, that is, the web server.
D: The Web server is the server that stores web pages. When a customer sends a request to the Web server through IE to view a Web page, the Web Server accepts the request, finds the corresponding webpage on the server, executes the request, and returns the execution result to the IE of the client.
E: all the requests sent from the client to the Web server are HTTP requests. That is to say, the client and server must follow the HTTP protocol.
HTTP Request
Client (IE) ------------ (Internet) ------------ Web Server (IIS)
<----- (Processing requests)
F: Generally, the client and server are in different computers. Of course, the same machine can be both a server and a client.

Static webpage:
Before a dynamic webpage is generated, all webpages are static. Static webpages have the following features:
A: static webpage Code All are written in HTML (Hypertext Markup langou) hypertext markup language.
B: No static webpage Program Code, which is stored on the server with the *. HTM extension
C: When ie sends a static webpage request to the Web server, the web server downloads the HTM code on the webpage to IE on the client for execution, that is, the Web server does not execute any code. The web server is only used for storing HTM code.
D: because the static webpage does not have program code, the webpage will not change according to the environment (unless someone modifies the webpage), so there is a static webpage statement (for example: A picture displayed on a static webpage does not show different pictures based on time)
<HTML>
<Body>
<Font color = Red> my Chinese heart </font>
</Body>
</Html>
E: IE can only recognize HTML languages and cannot recognize programs

Active Server Page)
Dynamic Web pages have the following features:
A: The dynamic web page contains program code. When a client sends a request to the Web server, the web server executes the code in the request and executes the result after the execution (pure HTML language ), the IE returned to the client is interpreted by IE and the result is obtained.
B: This web page appears on the Web server using *. asp (ASP) and *. aspx (Asp.net ).
C: Because the Web server executes the program code in the dynamic web page, the execution results of the program vary according to the execution conditions, that is, the execution results are changed, so there is a dynamic web page.

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.