zoukankan      html  css  js  c++  java
  • ASP.NET页面上直接放置用户控件WebUserControl1时的事件顺序

    WebForm1页面上直接放置用户控件WebUserControl1时的事件顺序:
    WebUserControl1_Init <br>
    WebForm1_Init <br>
    Page_Load <br>
    WebUserControl1_Load <br>
    WebForm1_PreRender <br>
    WebUserControl1_PreRender <br>
    WebUserControl1_Unload <br>
    WebForm1_Unload <br>

    webform1页面的oninit方法中用代码load用户控件webusercontrol1时的事件顺序:
    WebForm1_Init : OnInit
    WebForm1: Loading controls
    WebUserControl1_Init : OnInit
    WebForm1: added to Controls
    WebForm1: LoadViewState
    WebUserControl1: LoadViewState
    WebUserControl1: LoadPostData Begin
    WebUserControl1: LoadPostData End
    WebForm1_PageLoad: OnLoad after base's Onload.
    WebUserControl1_Load: after base's OnLoad
    iWebUserControl1: RaisePostDataChange
    WebForm1: OnPreRender
    WebUserControl1: OnPreRender
    WebForm1: SavedViewState
    WebUserControl1: SaveViewState

    webform1页面的page_load方法中用代码load用户控件webusercontrol1时的事件顺序:
    WebForm1_Init : OnInit
    WebForm1: LoadViewState
    WebForm1_PageLoad: OnLoad after base's Onload.
    WebForm1: Loading controls
    WebUserControl1_Init : OnInit
    WebUserControl1: LoadViewState
    WebForm1: added to Controls
    WebUserControl1_Load: after base's OnLoad
    WebUserControl1: LoadPostData Begin
    WebUserControl1: LoadPostData End
    iWebUserControl1: RaisePostDataChange
    WebForm1: OnPreRender
    WebUserControl1: OnPreRender
    WebForm1: SavedViewState
    WebUserControl1: SaveViewState


    WebForm1页面的Button1_Click事件中用代码Load用户控件WebUserControl1时的事件顺序:
    WebForm1_Init <br>
    Page_Load <br>
    Button1_Click <br>
    WebUserControl1_Init <br>
    WebUserControl1_Load <br>
    WebForm1_PreRender <br>
    WebUserControl1_PreRender <br>
    WebUserControl1_Unload <br>
    WebForm1_Unload <br>

    webform1页面的page_load事件中用代码load用户控件webusercontrol1webusercontrol1又在page_load事件中用代码load用户控件webusercontrol2时的事件顺序:
    WebForm1_Init <br>
    Page_Load <br>
    WebUserControl1_Init <br>
    WebUserControl1_Load <br>
    WebUserControl2_Init <br>
    WebUserControl2_Load <br>
    WebForm1_PreRender <br>
    WebUserControl1_PreRender <br>
    WebUserControl2_PreRender <br>
    WebUserControl2_Unload <br>
    WebUserControl1_Unload <br>
    WebForm1_Unload <br

  • 相关阅读:
    《程序员修炼之道》——第二章 注重实效的途径(三)
    《程序员修炼之道》——第二章 注重实效的途径(二)
    《程序员修炼之道》——第二章 注重实效的途径(一)
    win10 磁盘占用高--- 禁用用户改善反馈 CompatTelRunner.exe
    ffmpeg拼接多个音频
    词云-wordcloud
    大数据指数日常应用
    搜索过滤Tip : title,site(搜标题和搜网站)
    eclipse下查看java源码设置
    sqlplus sys as sysdba
  • 原文地址:https://www.cnblogs.com/aion111/p/1645426.html
Copyright © 2011-2022 走看看