[ASP. NET] From ASP. NET Postback mechanism to POST/GET Method

Source: Internet
Author: User
Tags form post

The origin of this blog is my confusion about the PostBack mechanism when I recently studied ASP. NET. As I am confused and constantly raise new questions, the blog finally goes deep into the http packet format and the TCP/IP model used by the Internet, it is a basic review class. However, I believe that the robustness of these foundations will affect the deep learning of the web. Therefore, we can organize documents to facilitate review and discussion. When I write a blog, I didn't adjust the underlying content such as the http protocol package format to the beginning, because I think that since I think so, why not present it like this? In order to facilitate the description, I use this tree to express the idea of writing this blog post. IsPostBack is the leaf that raises questions on the surface. Following this leaf, we can gradually trace back to the trunk of the http protocol. The "Post and Get methods" part is arranged on the trunk because it begins to touch the Main Body of Web development; ASP on the branches.. NET only adds an extension of its own technology based on this subject. Other technologies, such as JSP, Struts, and other Java-oriented technologies, are also extensions based on this subject. Therefore, they will all be split from the trunk like branches. There are any mistakes in the blog. Please leave a message to discuss them with me. After all, I just got into touch with the Fresh Man of the Web. At the time of writing, I was very confused. So I welcome to point out errors and discussions. What is the PostBack mechanism? What is the role of IsPostBack? The PostBack mechanism is unique to ASP. NET. Why is it special? Let's start with web requests and responses. The basic principle of web is request and response. Take asp as an example. The Browser-side HTML text and javascript code will send a script to the server, a server-side. asp script, accept the request, and send a respond after processing. This server-side script interacts with the client-side script to respond to user operations (submitting forms and loading new URLs) again and again. Take an html file and an asp file as an example: html code: Copy Code <! DOCtype html PUBLIC "-// W3C // DTD XhTML 1.0 Transitional // EN "" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <Html xmlns =" http://www.w3.org/1999/xhtml "> <Head> <title> order </title>

Related Article

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.