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.