Page background method Loading

Source: Internet
Author: User

Discover things

Loading Sequence of the three methods, from top to bottom

Page_init

Page_load

Page_prerender

In addition

The order of loading pages and user controls page_load needs to be changed.

 

Modify user control page_load (protected-> Public)

Call UCID. page_load (null, null) in page_load of the page );

There is a problem in calling the user control. If ispostback is not added,ProgramWill be run repeatedly

The best thing is to write a public method in the user control and call it on the page.

 

If you want to verify logon on the motherboard page, you can write the verification method to page_init. The page_init method can run before page_load on the Child page, you have not tested the page_init of the child page and the page_init of the parent page. However, you should run the child page first. If you have time, try it and write it back.

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.