码迷,mamicode.com
首页 > Web开发 > 详细

ASP.NET 页生命周期概述

时间:2014-07-23 11:45:16      阅读:152      评论:0      收藏:0      [点我收藏+]

标签:blog   http   os   re   c   div   

        protected void Page_PreInit(object sender, System.EventArgs e)
        {
            if (IsPostBack)
            {
                //Label1.Text += "Page.PreInti Event<br/>";
            }
        }

        protected void Page_Init(object sengder, EventArgs e)
        {
            Label1.Text += "Page.Init Event<br/>";
        }

        protected void Page_InitComplete(object sender, EventArgs e)
        {
            Label1.Text += "Page.InitComplete<br/>";
        }

        protected void Page_PreLoad(object sender, EventArgs e)
        {
            Label1.Text += "Page.PreLoad Event<br/>";
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            Label1.Text += "Page.Load Event<br/>";
            if (Page.IsPostBack)
            {
                Label1.Text += "Send back request<br/>";
            }
        }

        protected void Page_LoadComplete(object sender, EventArgs e)
        {
            Label1.Text += "Page.LoadComplete Event<br/>";
        }

        protected void Page_PreRender(object sender, EventArgs e)
        {
            Label1.Text += "Page.PreRender Event<br/>";
        }

        protected void Page_Render(object sender, EventArgs e)
        {
            Label1.Text += "Page.Render Event";
        }

        protected void Page_Unload(object sender, EventArgs e)
        {
            //Label1.Text += "Page.Unload Event<br/>";
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Label1.Text += "Button.Click Event<br/>";
        }

  http://msdn.microsoft.com/zh-cn/library/ms178472.aspx#general_page_lifecycle_stages

ASP.NET 页生命周期概述,布布扣,bubuko.com

ASP.NET 页生命周期概述

标签:blog   http   os   re   c   div   

原文地址:http://www.cnblogs.com/xiao-hei/p/3861621.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!