ASP. NET Event Mode

Source: Internet
Author: User

1. When a webpage is running for the first time, ASP. NET creates a webpage and a control object, and implements initial operations.CodeAnd the webpage is converted to HTML and returned to the client. In this case, the webpage object is also cleared from the server memory.

2. At a certain point in time, the user has done some things (for example, clicking a button) on the browser page, thus triggering the return. The webpage with all form data is submitted.

3. ASP. NET intercepts the returned webpage and recreates the webpage object, and then replies to the status when they were last sent to the client.

4. ASP. NET checks what operations trigger the callback and generates corresponding events (such as the button click event) so that your code can respond to the event. In this case, you can perform server operations (such as updating the database or reading data from a file) and edit the control object to display the latest information.

5. The edited webpage is converted to HTML again and returned to the client. These related webpage objects are cleared from memory. If another callback occurs, ASP. NET repeats the process in steps 2 to 4.

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.