I'm new to C# and ASP.NET. I hear a lot about application and/or web page life-cycle. I want to know what's the meaning of this?
The page lifecycle is the sequence of events that are invoked in an ASP.NET Page Request.
This is documented in great detail here.
As you tagged your question with ASP.NET, here goes the mandatory doc:
ASP.NET Page Life Cycle Overview
When an ASP.NET page runs, the page goes through a life cycle (stages) in which it performs a series of processing steps. These include initialization, instantiating controls, restoring and maintaining state, running event handler code, and rendering. It is important for you to understand the page life cycle so that you can write code at the appropriate life-cycle stage for the effect you intend.
Web Page lifecycle is simply a sequence of events that happen between the request (hitting the page) and response (returning data to user).
You can find more info about that here:
The web page life-cycle refers to the process and events that get fired for a page when it goes from a request to a rendered page.
Here is a link to an overview: http://msdn.microsoft.com/en-us/library/ms178472.aspx
One of the resources I still use is the MSDN article (ASP.NET Page Life Cycle Overview):
When an ASP.NET page runs, the page goes through a life cycle in which it performs a series of processing steps. These include initialization, instantiating controls, restoring and maintaining state, running event handler code, and rendering. It is important for you to understand the page life cycle so that you can write code at the appropriate life-cycle stage for the effect you intend.
© 2022 - 2024 — McMap. All rights reserved.