博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

asp.net事件顺序

Posted on 2009-08-12 14:04  wisdom1217  阅读(327)  评论(0编辑  收藏  举报
//page预初始化
    protected void Page_PreInit(Object sender, System.EventArgs e) { }

    //子控件初始化
    lblMessage_Init
    SqlDataSource1_Init
    SqlDataSource2_Init
    SqlDataSource3_Init
    DropDownList1_Init
    DropDownList2_Init
    GridView1_Init


    //page 初始化
    Page_Init

    //page 初始化 完成
    Page_InitComplete

    //page 预装载
    Page_PreLoad

    //page 装载
    Page_Load

    //子控件装载
    lblMessage_Load
    SqlDataSource1_Load
    SqlDataSource2_Load
    SqlDataSource3_Load
    DropDownList1_Load
    DropDownList2_Load
    GridView1_Load
   
    //触发页面回送事件
    DropDownList1_SelectedIndexChanged
    DropDownList1_TextChanged

    //Page装载完成
    Page_LoadComplete

    //Page准备回发
    Page_PreRender
   
    //子控件数据绑定 准备回发
    DropDownList1_DataBinding
    DropDownList1_DataBound
    DropDownList1_PreRender
    DropDownList2_DataBinding
    DropDownList2_DataBound
    DropDownList2_PreRender
    GridView1_DataBinding
    GridView1_RowDataBound
    GridView1_RowDataBound
    GridView1_RowDataBound
    GridView1_RowDataBound
    GridView1_RowDataBound
    GridView1_RowDataBound
    GridView1_RowDataBound
    GridView1_RowDataBound
    GridView1_RowDataBound
    GridView1_RowDataBound
    GridView1_RowDataBound
    GridView1_RowDataBound
    GridView1_RowDataBound
    GridView1_PreRender

    //Page准备回发完毕
    Page_PreRenderComplete

    //Page 保存回发状态
    Page_SaveStateComplete