Hi !
anyone tell me the link or explain abt ASP.NET Page Life Cycle.
thanks in advance.:-|
As ’s link covered the HTTP pipeline (and correctly called that out) and pointed to page-level docs, this note summarizes the ASP.NET Web Forms Page lifecycle (System.Web.UI.Page) and gives practical rules that often solve the common problems raised in this thread. This applies to Web Forms; ASP.NET MVC / Core follow different flows.
Key Web Forms page events (typical order) and their purpose:
Practical rule (dynamic controls): recreate server-side dynamic controls at Init (or PreInit if master/themes matter) so viewstate can be restored and events will wire. Example:
protected void Page_Init(object sender, EventArgs e)
{
Button dyn = new Button();
dyn.ID = "dynBtn";
dyn.Text = "Click";
dyn.Click += new EventHandler(Dyn_Click);
PlaceHolder1.Controls.Add(dyn);
}
protected void Dyn_Click(object sender, EventArgs e)
{
// handle postback
} Troubleshooting tips: missing viewstate or no event firing usually means controls were created too late or IDs change; large viewstate hurts performance—disable EnableViewState where not needed; use tracing or logging (for example add <%@ Page Trace="true" %> during debugging) or put Trace.Write/Debug.WriteLine calls inside lifecycle overrides to observe order. This complements the earlier posts by separating the global HTTP pipeline (modules, HttpApplication events) from per-page lifecycle events.
Jump to Post— Paladine 138Hi !
anyone tell me the link or explain abt ASP.NET Page Life Cycle.
thanks in advance.:-|
Here you are:
Hope this helps :)
Jump to Post— stewy68 4one life cycle coming up
Hi !
anyone tell me the link or explain abt ASP.NET Page Life Cycle.
thanks in advance.:-|
Here you are:
Hope this helps :)
Hi Paladine!
Its really worth. Thanks a lot!
Kombaraj.
one life cycle coming up
Here you are: ASP.Net Web Page Processing
That's actually not the life cycle, that's the asp .net pipeline.
Here you are: ASP.Net Web Page Processing
That's actually not the life cycle, that's the asp .net pipeline.
Hi Red,
You are right. It is HTTP request processing pipeline explains how the request is manipulated by different objects.
But Page Event Life Cycle contains all the events and methods that executed at the page level when the request comes to the Page object.
Please go through the follwong link, if u want to know about Page Life cycle.
http://www.aspfree.com/c/a/ASP.NET/ASP.NET-Life-Cycle-and-Best-Practices/2/
Thanks,
Kedar
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.