有关OnLoad的执行顺序

有四个基类,WebUC继承System.Web.UI.MasterPage,WebPage继承System.Web.UI.Page,AuthPage继承WebPage,WebMasterPage继承System.Web.UI.MasterPage,页面default.aspx,使用继承了WebMasterPage模板,同时该页面继承AuthPage,那么这些类的protected override void OnLoad(EventArgs e)执行顺序如下:
AuthPage.OnLoad  ->  WebPage.OnLoad  ->  WebMasterPage.OnLoad  ->  WebUC.OnLoad

posted @ 2009-06-11 09:24  angushine  阅读(383)  评论(0编辑  收藏  举报