Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
protected void Page_Load(object sender, EventArgs e)
{
//somefunctionhere
}



protected void Page_LoadComplete(object sender, EventArgs e)
{
btnSave.Enabled = false;
btnSave.ForeColor = ColorTranslator.FromHtml("#A0A0A0");
}


protected void Page_PreRender(object sender, EventArgs e)
{
BindDropDownList(); //some binding
}



In above code , what is the purpose of calling Page_Load, then Page_LoadComplete , Page_PreRender
Posted

1 solution

You don't call them: the framework does, in a specific order as part of the page lifecycle, as they all have specific tasks to do.
MSDN: Page Lifecycle[^] lists the order and explains what each event does.
 
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