top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Please briefly explain ASP.NET Page life Cycle?

+1 vote
517 views
Please briefly explain ASP.NET Page life Cycle?
posted Sep 1, 2015 by Sathyasree

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+1 vote

ASP.NET page passes through a series of steps during its life cycle. Following is the high-level explanation of life cycle stages/steps.
Initialization: Controls raise their Init event in this stage.Objects and variables are initializes for complete lifecyle of request.
LoadViewState: is a post back stage and loads the view state for the controls that enabled its view state property.
LoadPostBackData: is also a post back stage and loads the data posted for the controls and update them.
Load: In this stage page as well as all the controls raise their Load event. Till this stage all the controls are initialized and loaded. In most of the cases, we are coding this event handler.
RaisePostBackEvent: is again a postback stage. For example, it's raise against a button click event. We can easily put our code here to perform certain actions.
SaveViewState: Finally, controls state is saved in this stage before Rendering HTML.
Render: This is the stage where HTML is generated for the page.
Dispose: Lastly, all objects associated with the request are cleaned up.

answer Sep 1, 2015 by Shivaranjini
0 votes

An ASP.NET Application starts its life cycle when a user requests a page from the server using any preferred browser like Internet Explorer, Mozilla, Safari, Google Chrome etc.Check this useful article to know more details.

https://www.mindstick.com/blog/764/asp-dot-net-application-and-page-life-cycle
http://www.codeguru.com/csharp/.net/net_asp/article.php/c19393/The-ASPNET-Page-Life-Cycle.htm

answer Sep 30, 2016 by anonymous
Similar Questions
+2 votes

What is the best way to explain asp.net page life cycle. There is so much information that i am unable to find the relevant ones.

...