ASP. NET page event details

Source: Internet
Author: User
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.

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.