. html and. aspx differences and server handling of both

Source: Internet
Author: User

You know, HTML and. aspx need to know the difference between static and dynamic Web pages first.

static Web pages: No background database, no program can not interact with the Web page, mainly used to set the style of the page, display content.
Dynamic Web pages: relative to a static Web page, you can interact with the data in the background, and it needs to be returned to the client browser after processing the server.
As far as HTML and ASPX are concerned, it is understood that pure, broken HTML is a static Web page with an extension of. html, while dynamic pages embed dynamic instructions in static HTML (these dynamic instructions can be the scripting language for ASP, PHP, and so on). . aspx

So what's the difference between a server's handling of the two?

It can be seen that if the client sends a static page request of the HTML type, the server is returned directly to the client's browser for display. If the. aspx type of Dynamic Web server needs to be judged on the server side that there is a service-side scripting language that needs to be processed, it is not generated directly. HTML is returned to the client, and if there is one, the script is processed to merge the processed script and the original HTML into an. html file to be displayed to the client.

Attention:

In the browser can parse: HTML, CSS, JS
Common client-side scripting language: JavaScript;
Common server-side scripting languages: jsp,asp, PHP

Summaryonly static. html files can be interpreted on the browser, so whether the client sends a static or dynamic page request, the final return to the client is static. html files.

. The difference between HTML and. aspx and the server's handling of both

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.