Click here to Skip to main content
15,900,461 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
 protected void Page_PreInit(object sender, EventArgs e)
        {
//Master Page settings,New User Controls,Themes
//And what Else...?
        }
 protected void Page_Init(object sender, EventArgs e)
        {
// what Actions ..?
//Give me a list of examples.. that can performed only in this event handler
        }
 protected void Page_InitComplete(object sender, EventArgs e)
        {

        }
 protected void Page_PreLoad(object sender, EventArgs e)
        {

        }
 protected void Page_Load(object sender, EventArgs e)
        {

        }
 protected void Page_LoadComplete(object sender, EventArgs e)
        {

        }
Posted
Updated 11-Oct-11 19:57pm
v2
Comments
Sergey Alexandrovich Kryukov 12-Oct-11 2:04am    
Question is not clear. OK, read about each of those events. Now, what's the problem?
--SA

Go through the following link:


It explains each event and a typical use for the sameASP.NET Page Life Cycle[^]
 
Share this answer
 
Read the description here
http://wiki.asp.net/page.aspx/1512/aspnet-page-life-cycle-events/[^]

http://forums.asp.net/t/1504602.aspx/1[^]
The diagram in this forum is very good way to make things clear
 
Share this answer
 
C#
protected void Page_PreInit(object sender, EventArgs e)
        {
//If i have a textbox with id t1, then eventhogh it is not initialized in this event(Untill Init event) then how am able to accessing the properties here
string text=t1.Text; 

        }
 protected void Page_Init(object sender, EventArgs e)
        {
string text=t1.Text; //It should possible
        }
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900