zoukankan      html  css  js  c++  java
  • Asp.net life cycle introduction

    1.Page request

      The page request occurs before the page life cycle begins. when the page is requested by a user, Asp.net determines whether the page need to be parsed and compiled, or whether a cached version of the page can be sent in response without running the page.

    2.Start

      In the start step, page properties such as Request and Response are set. At this stage ,the page also determines whether the request is postback or a new request and sets the IsPostBack property,Additionally ,during the start step, the page's UICulture property is set.

    3.Page initialization

      During page initialization,Controls on the page are available and each control's UniqueID property is set.Any themes are also applied to the page,If the current request is a postback,the postback data has not yet been loaded and control property values have not been restored to the values from view state.

    4.Load

      During load,if the current request is a postback, control properties are loaded with information recovered from view state and control state.

    5.Validation

      During validation,the validate method of all validator controls is called,which sets the IsValid property of individual validator controls and of the page.

    6.Postback event handling

      If the request is postback, any event handlers are called.

    7.Rendering

      Before rendering, view state is saved for the page and all controls.during the rendering phase, the page calls the Render method for each control,providing a text writer that writes its output to OutputStream of the page's Response

    8.Unload

      Unload is called after the page has been fully rendered. sent to the client and is ready to be discarded,At this point,page properties such as Response and Request are unloaded and any cleanup is performed.

  • 相关阅读:
    Linux下的inode记录
    Linux中如何使用gThumb批量调整图片大小
    U盘安装Linux安装报错及解决方案
    在Mysql中如何显示所有用户?
    【转】PowerDesigner中Table视图同时显示Code和Name
    【转】正则表达式-贪婪与非贪婪匹配
    【转】程序员书籍
    Oracle 分页、取期间数据、TOP前几
    数字信封理解
    【转】C# 利用反射动态创建对象
  • 原文地址:https://www.cnblogs.com/Excellentchen/p/1661568.html
Copyright © 2011-2022 走看看