Upload
brajesh-yadav
View
317
Download
2
Embed Size (px)
DESCRIPTION
Asp.Net Application Life Cycle Download Video for the same from You tube https://www.youtube.com/watch?v=eSybOVIoAow
Citation preview
Asp.Net Application Life Cycle
Presented byBrajeshInterviewGully.com
Download PPT fromhttp://www.slideshare.net/brajeshkyadav75
Application Life Cycle
It is Two Step Process
IIS
Page Level
IIS Life CycleFirst Step is IIS
Yes
Application Manager Create App Domain
Is This First
Request
No
App Domain Create Hosting Environment.
In Hosting Environment we have HttpContext, HttpRequest and HttpResponse
Process The Request (it will trigger Page Life Cycle)
Is This First
Request
Get HttpApplication from Pool
Create HttpApplication Object.If we have global .asax Object then global.asax object will be created
Yes
No
Assign HttpApplication to core Object.
Page Life CyclePage life cycle is the same during partial page postback as it is during full page postback.The page life cycle starts with a call to the ProcessRequest(). This method is used to initialize the page control hierarchy.
Stage 1: PreInitWhen asp.net webpage visited first time it will auto generate a class(Contain Control Information). And store in Temporary asp.net folder (Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files).• Set Master page• Set Theme• Set is postback Property• Set IsCrossPagePostbackStage 2: InitInitialize Control PropertyStage 3: Load View StateIt will only happen when page has been postback.InitComplete event FireStage 4: Load PostBackdataAll those control who implement IPostbackDataHandler. Never maintain view state data.Fire LoadPostData() to load postback data.PreLoad Event FireStage 5: LoadAll control fully loaded here.Stage 6: Raise PostbackRaise Postback EventControl EventLoad Complete Event
Page Life CycleStage 7: PreRenderMake final change to the content of the page and its controlsStage 8: Save view StateAll view data is serialized into base64 encoding stringStage 9: RenderAll custom and user control incorporate in this level.A user Control automatically incorporate rendering.Stage 10: UnloadClosing connection, and other request specific task.
Thank You
For any QueryFeel free to mail me [email protected]