Friday, September 15, 2017

What is Asp.Net Page Life Cycle

What is Asp.Net Page Life Cycle?

Asp.Net   is a powerful platform for building Web applications.  The ASP.NET page life cycle is a good example to explore so you know how and when page elements are loaded and corresponding events are fired. When 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 this steps, methods and events are available, which could be overridden according to the need of the application.
The page life cycle phases are:

1.    Page Initialization (Initialization theme and master page)
a.    Page_PreInit
b.    Page_Init
c.    Page_InitComplete

2.    Page Load (load all control Button,TextBox)
a.    Page_PreLoad
b.    Page_Load
c.    Page_LoadComplete

3.    Page Render (convert server side to client side (html))
                                          i.    Page_Prerender
                                         ii.    Page_PreRenderComplete
                                        iii.    Page_SaveStateComplete

4.    Page Unload (processing destroyed after output)
·         Page_UnLoading

No comments:

Post a Comment