ASP.NET Page Life CycleWhen a page is requested, it is loaded into the server memory, processed, and sent to the browser. Then it is unloaded from the memory. At each of these steps, methods and events are available, which could be overridden according to the need of the application. In other words, you can write your own code to override the default code.The Page class creates a hierarchical tree of all the controls on the page. All the components on the page, except the directives, are part of this control tree. You can see the control tree by adding trace= 'true' to the page directive. We will cover page directives and tracing under 'directives' and ‘event handling'.The page life cycle phases are: Initialization Instantiation of the controls on the page Restoration and maintenance of the state Execution of the event handler codes Page renderingUnderstanding the page cycle helps in writing codes for making some specific thing happen at any stage of the page life cycle. It also helps in writing custom controls and initializing them at right time, populate their properties with view-state data and run control behavior code. - Study24x7
Social learning Network
10 Apr 2019 04:23 PM study24x7 study24x7

ASP.NET Page Life CycleWhen a page is requested, it is loaded into the server memory, processed, and sent to the browser. Then it is unloaded from the memory. At each of these steps, methods and events are available, which could be overridden according to the need of the applicat...

See more

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles