ASPX is an event-based, understanding of incident, which can well-understand the work procedure of equivalent code, first look at a few simple events: Page_init-> Page_unload brief description as follows: Page_init: Page initialization This event is initialized: When the page is loaded, the event control event: If a control (such as pressing the New), trigger the page to make it reload, trigger the event Page_unload: When the page is unloaded from memory The difference between this event is page_init and page_load: Only in page_load can ensure that all controls are fully loaded, although you can access the control in Page_init, but viewState will not load, so each control will have the default value, not The value set during the process of sending back the server.