ASP.NET页面函数执行顺序

ascx 控件属性 :<uc1:TJHContractInvoiceListUc ID="TJHContractInvoiceList1" test="false" runat="server" />
aspx Page_Load
ascx InitControl(在aspx Page_Load 中调用) :

    if (!Page.IsPostBack)
        {
            Response.Write("aspx Page_Load<br/>");
            this.TJHContractInvoiceList1.InitControl();
        }
ascx Page_Load

ascx 控件属性
aspx Page_Load
ascx InitControl
ascx Page_Load

原文地址:https://www.cnblogs.com/newblog/p/2419247.html