asp.net事件顺序

//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

你可能感兴趣的:(asp.net)