Event firing order in ASP. NET Master pages and content pages

Source: Internet
Author: User

The order in which the master page and content page triggers events, the rule that triggers the event is that the initialization event is from the innermost control to the outermost control, and the other event is from the outermost control to the innermost control.

Here is a test:

The first time the Init event for the master page is triggered.

The second time the Init event for the content page is triggered.

The third trigger is the Load event for the content page

The fourth time the load event for the master page is triggered

Summarize:

The order in which the master page and the content page trigger events:

1. master Page init event.

2. Content Page init event.

3. Content Page Load Event

4. master Page Load event.

5. Content Page PreRender event.

6. master Page PreRender Event

Event firing order in ASP. NET Master pages and content pages

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.