Click here to Skip to main content
12,398,816 members (60,077 online)
Click here to Skip to main content
Articles » Web Development » ASP.NET » General » Downloads

Tagged as

Stats

3.5M views
11.2K downloads
727 bookmarked
Posted

ASP.NET Application and Page Life Cycle

, 8 Feb 2013 CPOL
ASP.NET application and page life cycle
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page 
{

    protected void Page_init(object sender, EventArgs e)
    {
        
        clsHttpModule.objArrayList.Add("Page:Init");
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        clsHttpModule.objArrayList.Add("Page:Load");
    }
    public override void Validate() 
    {
        clsHttpModule.objArrayList.Add("Page:Validate");
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        clsHttpModule.objArrayList.Add("Page:Event");
    }
    protected override void Render(HtmlTextWriter output) 
    {
        clsHttpModule.objArrayList.Add("Page:Render");
        base.Render(output);
    }
    protected void Page_Unload(object sender, EventArgs e)
    {
        clsHttpModule.objArrayList.Add("Page:UnLoad");
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author


You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160721.1 | Last Updated 9 Feb 2013
Article Copyright 2010 by Shivprasad koirala
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid