Place Ads here

Monday, May 30, 2011

ASP.Net Sample Projects.

                           


                    


                             ASP.Net Page Life  Cycle

























Asp.Net sample projects
(.net sample projects web)
This is to see how ASP.Net Page Cycle is 
This code is written in Default.aspx.cs


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_PreInit(object sender, EventArgs e)
    {
        Response.Write("Page_PreInit<br/>");
    }


    protected void Page_Init(object sender, EventArgs e)
    {
        Response.Write("Page_Init<br/>");
    }


    protected void Page_InitComplete(object sender, EventArgs e)
    {
        Response.Write("Page_InitComplete<br/>");
    }


    protected void Page_PreLoad(object sender, EventArgs e)
    {
        Response.Write("Page_PreLoad<br/>");
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Write("Page_Load<br/>");
    }
    protected void Page_LoadComplete(object sender, EventArgs e)
    {
        Response.Write("Page_LoadComplete<br/>");
    }
    protected void Page_PreRender(object sender, EventArgs e)
    {
        Response.Write("Page_PreRender<br/>");
    }


    protected void Page_Render(object sender, EventArgs e)
    {
        Response.Write("Page_Render<br/>");
    }
    


    protected void Button1_Click(object sender, EventArgs e)
    {
        Response.Write("Button1_Click<br/>");
    }
}

(.net sample projects web)

No comments:

Post a Comment