zoukankan      html  css  js  c++  java
  • asp.net page liftcycle


     Life cycle of ASP.NET 2.0?

    The events occur in the following sequence. Its best to turn on tracing(<% @Page Trace=”true”%>) and track the flow of events :

    PreInit – This event represents the entry point of the page life cycle. If you need to change the Master page or theme programmatically, then this would be the event to do so. Dynamic controls are created in this event.

    Init – Each control in the control collection is initialized.

    Init Complete* - Page is initialized and the process is completed.

    PreLoad* - This event is called before the loading of the page is completed.

    Load – This event is raised for the Page and then all child controls. The controls properties and view state can be accessed at this stage. This event indicates that the controls have been fully loaded.

    LoadComplete* - This event signals indicates that the page has been loaded in the memory. It also marks the beginning of the rendering stage.

    PreRender – If you need to make any final updates to the contents of the controls or the page, then use this event. It first fires for the page and then for all the controls.

    PreRenderComplete* - Is called to explicitly state that the PreRender phase is completed.

    SaveStateComplete* - In this event, the current state of the control is completely saved to the ViewState.

    Unload – This event is typically used for closing files and database connections. At times, it is also used for logging some wrap-up tasks.

    The events marked with * have been introduced in ASP.NET 2.0.



    分享到:
  • 相关阅读:
    MySQL库表设计小技巧
    教你用SQL实现统计排名
    Truncate用法详解
    utf8字符集下的比较规则
    关于Aborted connection告警日志的分析
    MySQL DDL详情揭露
    时间戳,这样用就对了
    在线修改主从复制选项
    20181211HW
    20181207hw
  • 原文地址:https://www.cnblogs.com/qqflying/p/1085828.html
Copyright © 2011-2022 走看看