ASP. NET page event details
1. page_init () event
This event occurs when the page is initialized. You can use page_init () to run the event andCodeEstablish Association. This event works in the same way as the page_load () event, but occurs before the page_load () event.
2. page_load event
When the page is visible for the first time (that is, when the page is read into the memory for processing), but after initialization of some server controls using page_init (), it is displayed.
3. page_unload () event
When the page is detached from the IIS Memory and sent to the browser. Occurs after the control event is processed. This event is very suitable for closing database connections. Its name is misleading, because this event does not occur when a user in the browser exits the page or closes the browser. The term uload is from the IIS perspective, rather than the browser.