SlideShare a Scribd company logo
ASP.NETlife cycle specifies,how:
ASP.NETprocessespagestoproduce dynamicoutput
The applicationanditspagesare instantiatedandprocessed
ASP.NETcompilesthe pagesdynamically
The ASP.NETlife cycle couldbe dividedintotwogroups:
ApplicationLife Cycle
Page Life Cycle
ASP.NETApplicationLifeCycle
ASP.NET Page Life Cycle
Whena page isrequested,itisloadedintothe servermemory,processed,andsenttothe browser.
Thenit isunloadedfromthe memory.Ateachof these steps,methodsandeventsare available,which
couldbe overriddenaccordingtothe needof the application.Inotherwords,youcanwrite yourown
code to override the defaultcode.
The Page classcreatesa hierarchical tree of all the controlson the page.All the componentsonthe
page,exceptthe directives,are partof thiscontrol tree.You can see the control tree by addingtrace=
"true"to the page directive.We will coverpage directivesandtracingunder'directives'and'event
handling'.
The page life cycle phasesare:
Initialization
Instantiationof the controlsonthe page
Restorationandmaintenance of the state
Executionof the eventhandlercodes
Page rendering
Understandingthe page cycle helpsinwritingcodesformakingsome specificthinghappenatanystage
of the page life cycle.Italsohelpsinwritingcustomcontrolsandinitializingthematrighttime,populate
theirpropertieswithview-statedataandrun control behaviorcode.
Followingare the differentstagesof anASP.NETpage:
Page request - WhenASP.NETgetsa page request,itdecideswhethertoparse and
compile the page,orthere wouldbe a cachedversionof the page;accordinglythe response issent.
Starting of page life cycle - At thisstage,the RequestandResponse objectsare set.
If the requestisanoldrequestor postback, the IsPostBackpropertyof the page is setto true.The
UICulture propertyof the page isalso set.
Page initialization - At thisstage,the controls on the page are assigneduniqueIDby
settingthe UniqueIDpropertyandthe themesare applied.Foranew request,postbackdatais loaded
and the control propertiesare restoredtothe view-statevalues.
Page load - At thisstage,control propertiesare setusingthe view state andcontrol state
values.
Validation - Validate methodof the validationcontrol iscalledandonitssuccessful execution,
the IsValidpropertyof the page issetto true.
Postback event handling - If the requestisa postback (oldrequest),the related
eventhandlerisinvoked.
Page rendering - At thisstage,view state forthe page and all controlsare saved.The page
callsthe Rendermethodforeachcontrol and the outputof renderingiswrittentothe OutputStream
classof the Response propertyof page.
Unload - The renderedpage issenttothe clientandpage properties,suchasResponse and
Request,are unloadedandall cleanupdone.
ASP.NET Page Life Cycle Events
At eachstage of the page life cycle,the page raisessome events,whichcouldbe coded.Anevent
handlerisbasicallyafunctionorsubroutine,boundtothe event,usingdeclarative attributessuchas
Onclickor handle.
Followingare the page life cycle events:
PreInit- PreInitisthe firsteventinpage life cycle.Itchecksthe IsPostBackpropertyanddetermines
whetherthe page isa postback.It setsthe themesandmasterpages,createsdynamiccontrols,andgets
and setsprofile propertyvalues.Thiseventcanbe handledbyoverloadingthe OnPreInitmethodor
creatinga Page_PreInithandler.
Init- Initeventinitializesthe control propertyandthe control tree isbuilt.Thiseventcanbe handledby
overloadingthe OnInitmethodorcreatingaPage_Inithandler.
InitComplete - InitComplete eventallowstrackingof view state.All the controlsturnonview-state
tracking.
LoadViewState- LoadViewState eventallowsloadingview state informationintothe controls.
LoadPostData- Duringthisphase,the contentsof all the inputfieldsare definedwiththe <form>tagare
processed.
PreLoad- PreLoadoccurs before the postbackdata is loadedinthe controls.Thiseventcanbe handled
by overloadingthe OnPreLoadmethodorcreatingaPage_PreLoadhandler.
Load - The Load eventisraisedforthe page firstandthenrecursivelyforall childcontrols.The controls
inthe control tree are created.Thiseventcan be handledbyoverloadingthe OnLoadmethodor
creatinga Page_Loadhandler.
LoadComplete - The loadingprocessiscompleted,control eventhandlersare run,andpage validation
takesplace.Thiseventcanbe handledbyoverloadingthe OnLoadComplete methodorcreatinga
Page_LoadComplete handler
PreRender- The PreRendereventoccursjustbefore the outputisrendered.Byhandlingthisevent,
pagesand controlscan performanyupdatesbefore the outputisrendered.
PreRenderComplete- Asthe PreRendereventisrecursivelyfiredforall childcontrols,thiseventensures
the completionof the pre-renderingphase.
SaveStateComplete - State of control onthe page issaved.Personalization,control state andview state
informationissaved.The HTML markupis generated.Thisstage canbe handledbyoverridingthe
Rendermethodorcreatinga Page_Renderhandler.
UnLoad - The UnLoad phase is the lastphase of the page life cycle.Itraisesthe UnLoad eventforall
controlsrecursivelyandlastlyforthe page itself.Final cleanupisdone andall resourcesandreferences,
such as database connections,are freed.Thiseventcanbe handledbymodifyingthe OnUnLoadmethod
or creatinga Page_UnLoad handler.

More Related Content

What's hot

Aspnet Life Cycles Events
Aspnet Life Cycles EventsAspnet Life Cycles Events
Aspnet Life Cycles EventsLiquidHub
 
Asp.net event handler
Asp.net event handlerAsp.net event handler
Asp.net event handler
Sireesh K
 
Writing a massive javascript app
Writing a massive javascript appWriting a massive javascript app
Writing a massive javascript app
Justin Park
 
Asp dot net lifecycle in details
Asp dot net lifecycle in detailsAsp dot net lifecycle in details
Asp dot net lifecycle in details
Ayesha Khan
 
ASP.NET Page Life Cycle
ASP.NET Page Life CycleASP.NET Page Life Cycle
ASP.NET Page Life Cycle
Abhishek Sur
 
multiple views and routing
multiple views and routingmultiple views and routing
multiple views and routingBrajesh Yadav
 
Creating EPiServer Usage Reports
Creating EPiServer Usage ReportsCreating EPiServer Usage Reports
Creating EPiServer Usage Reports
Paul Graham
 
React js t7 - forms-events
React js   t7 - forms-eventsReact js   t7 - forms-events
React js t7 - forms-events
Jainul Musani
 
Asp.net state management
Asp.net state managementAsp.net state management
Asp.net state management
priya Nithya
 
Ajax pagination using j query in rails3
Ajax pagination using j query in rails3Ajax pagination using j query in rails3
Ajax pagination using j query in rails3
Andolasoft Inc
 
Page life cycle
Page life cyclePage life cycle
Page life cycle
anil4691
 
React js t8 - inlinecss
React js   t8 - inlinecssReact js   t8 - inlinecss
React js t8 - inlinecss
Jainul Musani
 
Troubleshooting oracle apps
Troubleshooting oracle appsTroubleshooting oracle apps
Troubleshooting oracle appsvamsi18here
 
Indic threads pune12-improve testing efficiency with selenium webdriver
Indic threads pune12-improve testing efficiency with selenium webdriverIndic threads pune12-improve testing efficiency with selenium webdriver
Indic threads pune12-improve testing efficiency with selenium webdriver
IndicThreads
 

What's hot (16)

Aspnet Life Cycles Events
Aspnet Life Cycles EventsAspnet Life Cycles Events
Aspnet Life Cycles Events
 
Asp.net event handler
Asp.net event handlerAsp.net event handler
Asp.net event handler
 
Writing a massive javascript app
Writing a massive javascript appWriting a massive javascript app
Writing a massive javascript app
 
Asp dot net lifecycle in details
Asp dot net lifecycle in detailsAsp dot net lifecycle in details
Asp dot net lifecycle in details
 
ASP.NET Page Life Cycle
ASP.NET Page Life CycleASP.NET Page Life Cycle
ASP.NET Page Life Cycle
 
multiple views and routing
multiple views and routingmultiple views and routing
multiple views and routing
 
Creating EPiServer Usage Reports
Creating EPiServer Usage ReportsCreating EPiServer Usage Reports
Creating EPiServer Usage Reports
 
React js t7 - forms-events
React js   t7 - forms-eventsReact js   t7 - forms-events
React js t7 - forms-events
 
Asp.net state management
Asp.net state managementAsp.net state management
Asp.net state management
 
Ajax pagination using j query in rails3
Ajax pagination using j query in rails3Ajax pagination using j query in rails3
Ajax pagination using j query in rails3
 
Page life cycle
Page life cyclePage life cycle
Page life cycle
 
React js t8 - inlinecss
React js   t8 - inlinecssReact js   t8 - inlinecss
React js t8 - inlinecss
 
Troubleshooting oracle apps
Troubleshooting oracle appsTroubleshooting oracle apps
Troubleshooting oracle apps
 
07 02-05
07 02-0507 02-05
07 02-05
 
Indic threads pune12-improve testing efficiency with selenium webdriver
Indic threads pune12-improve testing efficiency with selenium webdriverIndic threads pune12-improve testing efficiency with selenium webdriver
Indic threads pune12-improve testing efficiency with selenium webdriver
 
Asp.net mvc
Asp.net mvcAsp.net mvc
Asp.net mvc
 

Similar to Life cycle of web page

Why ASP.NET Development is Important?
Why ASP.NET Development is Important?Why ASP.NET Development is Important?
Why ASP.NET Development is Important?
Ayesha Khan
 
Aspnetpagelifecycle 101129103702-phpapp02
Aspnetpagelifecycle 101129103702-phpapp02Aspnetpagelifecycle 101129103702-phpapp02
Aspnetpagelifecycle 101129103702-phpapp02santoshkjogalekar
 
Asp.net control
Asp.net controlAsp.net control
Asp.net control
Paneliya Prince
 
Parallelminds.asp.net with sp
Parallelminds.asp.net with spParallelminds.asp.net with sp
Parallelminds.asp.net with sp
parallelminder
 
Aspnet life cycle events
Aspnet life cycle eventsAspnet life cycle events
Aspnet life cycle eventsTrushant parkar
 
13 asp.net session19
13 asp.net session1913 asp.net session19
13 asp.net session19
Vivek chan
 
C sharp and asp.net interview questions
C sharp and asp.net interview questionsC sharp and asp.net interview questions
C sharp and asp.net interview questions
Akhil Mittal
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NET
Peter Gfader
 
ASP.Net Presentation Part1
ASP.Net Presentation Part1ASP.Net Presentation Part1
ASP.Net Presentation Part1Neeraj Mathur
 
As pnet pagelife_usha
As pnet pagelife_ushaAs pnet pagelife_usha
As pnet pagelife_usha
Rajalaxmi Pattanaik
 
Web controls
Web controlsWeb controls
Web controls
Sarthak Varshney
 
NET_Training.pptx
NET_Training.pptxNET_Training.pptx
NET_Training.pptx
ssuserc28c7c1
 
Dev Basics: The ASP.NET Page Life Cycle
Dev Basics: The ASP.NET Page Life CycleDev Basics: The ASP.NET Page Life Cycle
Dev Basics: The ASP.NET Page Life Cycle
Jay Harris
 
Overview of ASP.Net by software outsourcing company india
Overview of ASP.Net by software outsourcing company indiaOverview of ASP.Net by software outsourcing company india
Overview of ASP.Net by software outsourcing company india
Jignesh Aakoliya
 
ASP.NET 02 - How ASP.NET Works
ASP.NET 02 - How ASP.NET WorksASP.NET 02 - How ASP.NET Works
ASP.NET 02 - How ASP.NET Works
Randy Connolly
 
Server Controls of ASP.Net
Server Controls of ASP.NetServer Controls of ASP.Net
Server Controls of ASP.Net
Hitesh Santani
 
ASP.NET Lecture 2
ASP.NET Lecture 2ASP.NET Lecture 2
ASP.NET Lecture 2
Julie Iskander
 
03 asp.net session04
03 asp.net session0403 asp.net session04
03 asp.net session04
Vivek chan
 

Similar to Life cycle of web page (20)

Why ASP.NET Development is Important?
Why ASP.NET Development is Important?Why ASP.NET Development is Important?
Why ASP.NET Development is Important?
 
Aspnetpagelifecycle 101129103702-phpapp02
Aspnetpagelifecycle 101129103702-phpapp02Aspnetpagelifecycle 101129103702-phpapp02
Aspnetpagelifecycle 101129103702-phpapp02
 
Asp.net control
Asp.net controlAsp.net control
Asp.net control
 
Parallelminds.asp.net with sp
Parallelminds.asp.net with spParallelminds.asp.net with sp
Parallelminds.asp.net with sp
 
Aspnet life cycle events
Aspnet life cycle eventsAspnet life cycle events
Aspnet life cycle events
 
13 asp.net session19
13 asp.net session1913 asp.net session19
13 asp.net session19
 
C sharp and asp.net interview questions
C sharp and asp.net interview questionsC sharp and asp.net interview questions
C sharp and asp.net interview questions
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NET
 
ASP.Net Presentation Part1
ASP.Net Presentation Part1ASP.Net Presentation Part1
ASP.Net Presentation Part1
 
As pnet pagelife_usha
As pnet pagelife_ushaAs pnet pagelife_usha
As pnet pagelife_usha
 
Ajax and ASP.NET AJAX
Ajax and ASP.NET AJAXAjax and ASP.NET AJAX
Ajax and ASP.NET AJAX
 
Web controls
Web controlsWeb controls
Web controls
 
NET_Training.pptx
NET_Training.pptxNET_Training.pptx
NET_Training.pptx
 
Dev Basics: The ASP.NET Page Life Cycle
Dev Basics: The ASP.NET Page Life CycleDev Basics: The ASP.NET Page Life Cycle
Dev Basics: The ASP.NET Page Life Cycle
 
Web forms in ASP.net
Web forms in ASP.netWeb forms in ASP.net
Web forms in ASP.net
 
Overview of ASP.Net by software outsourcing company india
Overview of ASP.Net by software outsourcing company indiaOverview of ASP.Net by software outsourcing company india
Overview of ASP.Net by software outsourcing company india
 
ASP.NET 02 - How ASP.NET Works
ASP.NET 02 - How ASP.NET WorksASP.NET 02 - How ASP.NET Works
ASP.NET 02 - How ASP.NET Works
 
Server Controls of ASP.Net
Server Controls of ASP.NetServer Controls of ASP.Net
Server Controls of ASP.Net
 
ASP.NET Lecture 2
ASP.NET Lecture 2ASP.NET Lecture 2
ASP.NET Lecture 2
 
03 asp.net session04
03 asp.net session0403 asp.net session04
03 asp.net session04
 

More from university of Gujrat, pakistan

Change management
Change management Change management
Change management
university of Gujrat, pakistan
 
Latest Trends in Digital Marketing
Latest Trends in Digital MarketingLatest Trends in Digital Marketing
Latest Trends in Digital Marketing
university of Gujrat, pakistan
 
Dark web (2)
Dark web (2)Dark web (2)
Code of ethics and professional conduct (1)
Code of ethics and professional conduct (1)Code of ethics and professional conduct (1)
Code of ethics and professional conduct (1)
university of Gujrat, pakistan
 
Certification accreditation and licensure (1)
Certification accreditation and licensure (1)Certification accreditation and licensure (1)
Certification accreditation and licensure (1)
university of Gujrat, pakistan
 
biggest technology trends
biggest technology trendsbiggest technology trends
biggest technology trends
university of Gujrat, pakistan
 
Freedom of information (1)
Freedom of information (1)Freedom of information (1)
Freedom of information (1)
university of Gujrat, pakistan
 
Individual cognition ppt (1)
Individual cognition ppt (1)Individual cognition ppt (1)
Individual cognition ppt (1)
university of Gujrat, pakistan
 
Top 10 highest (1)
Top 10 highest (1)Top 10 highest (1)
Top 10 highest (1)
university of Gujrat, pakistan
 
creativity and imagination
creativity and imagination creativity and imagination
creativity and imagination
university of Gujrat, pakistan
 
Brainstorming 078 (1)
Brainstorming 078 (1)Brainstorming 078 (1)
Brainstorming 078 (1)
university of Gujrat, pakistan
 
speeh-artificial intelligemce
speeh-artificial intelligemce speeh-artificial intelligemce
speeh-artificial intelligemce
university of Gujrat, pakistan
 
Pp dealing with problem complexity (1)
Pp dealing with problem complexity (1)Pp dealing with problem complexity (1)
Pp dealing with problem complexity (1)
university of Gujrat, pakistan
 
Motivation
MotivationMotivation
Vision of artificial intelligence (1)
Vision of artificial intelligence (1)Vision of artificial intelligence (1)
Vision of artificial intelligence (1)
university of Gujrat, pakistan
 
Entrepreneurship (1)
Entrepreneurship (1)Entrepreneurship (1)
Entrepreneurship (1)
university of Gujrat, pakistan
 
Role of professional societies
Role of professional societiesRole of professional societies
Role of professional societies
university of Gujrat, pakistan
 
Dealing with culticultural environment (1)
Dealing with culticultural environment (1)Dealing with culticultural environment (1)
Dealing with culticultural environment (1)
university of Gujrat, pakistan
 
Dealing with problem complexity (1)
Dealing with problem complexity (1)Dealing with problem complexity (1)
Dealing with problem complexity (1)
university of Gujrat, pakistan
 
cyber security and cyber crime
cyber security and cyber crime cyber security and cyber crime
cyber security and cyber crime
university of Gujrat, pakistan
 

More from university of Gujrat, pakistan (20)

Change management
Change management Change management
Change management
 
Latest Trends in Digital Marketing
Latest Trends in Digital MarketingLatest Trends in Digital Marketing
Latest Trends in Digital Marketing
 
Dark web (2)
Dark web (2)Dark web (2)
Dark web (2)
 
Code of ethics and professional conduct (1)
Code of ethics and professional conduct (1)Code of ethics and professional conduct (1)
Code of ethics and professional conduct (1)
 
Certification accreditation and licensure (1)
Certification accreditation and licensure (1)Certification accreditation and licensure (1)
Certification accreditation and licensure (1)
 
biggest technology trends
biggest technology trendsbiggest technology trends
biggest technology trends
 
Freedom of information (1)
Freedom of information (1)Freedom of information (1)
Freedom of information (1)
 
Individual cognition ppt (1)
Individual cognition ppt (1)Individual cognition ppt (1)
Individual cognition ppt (1)
 
Top 10 highest (1)
Top 10 highest (1)Top 10 highest (1)
Top 10 highest (1)
 
creativity and imagination
creativity and imagination creativity and imagination
creativity and imagination
 
Brainstorming 078 (1)
Brainstorming 078 (1)Brainstorming 078 (1)
Brainstorming 078 (1)
 
speeh-artificial intelligemce
speeh-artificial intelligemce speeh-artificial intelligemce
speeh-artificial intelligemce
 
Pp dealing with problem complexity (1)
Pp dealing with problem complexity (1)Pp dealing with problem complexity (1)
Pp dealing with problem complexity (1)
 
Motivation
MotivationMotivation
Motivation
 
Vision of artificial intelligence (1)
Vision of artificial intelligence (1)Vision of artificial intelligence (1)
Vision of artificial intelligence (1)
 
Entrepreneurship (1)
Entrepreneurship (1)Entrepreneurship (1)
Entrepreneurship (1)
 
Role of professional societies
Role of professional societiesRole of professional societies
Role of professional societies
 
Dealing with culticultural environment (1)
Dealing with culticultural environment (1)Dealing with culticultural environment (1)
Dealing with culticultural environment (1)
 
Dealing with problem complexity (1)
Dealing with problem complexity (1)Dealing with problem complexity (1)
Dealing with problem complexity (1)
 
cyber security and cyber crime
cyber security and cyber crime cyber security and cyber crime
cyber security and cyber crime
 

Recently uploaded

Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
Ortus Solutions, Corp
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
XfilesPro
 
Designing for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web ServicesDesigning for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web Services
KrzysztofKkol1
 
A Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdfA Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdf
kalichargn70th171
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
AMB-Review
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
Cyanic lab
 
Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024
Sharepoint Designs
 
Strategies for Successful Data Migration Tools.pptx
Strategies for Successful Data Migration Tools.pptxStrategies for Successful Data Migration Tools.pptx
Strategies for Successful Data Migration Tools.pptx
varshanayak241
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Globus
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
informapgpstrackings
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
Juraj Vysvader
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
Max Andersen
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
abdulrafaychaudhry
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
Matt Welsh
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
vrstrong314
 

Recently uploaded (20)

Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
 
Designing for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web ServicesDesigning for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web Services
 
A Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdfA Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdf
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
 
Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024
 
Strategies for Successful Data Migration Tools.pptx
Strategies for Successful Data Migration Tools.pptxStrategies for Successful Data Migration Tools.pptx
Strategies for Successful Data Migration Tools.pptx
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
 

Life cycle of web page

  • 1. ASP.NETlife cycle specifies,how: ASP.NETprocessespagestoproduce dynamicoutput The applicationanditspagesare instantiatedandprocessed ASP.NETcompilesthe pagesdynamically The ASP.NETlife cycle couldbe dividedintotwogroups: ApplicationLife Cycle Page Life Cycle ASP.NETApplicationLifeCycle ASP.NET Page Life Cycle Whena page isrequested,itisloadedintothe servermemory,processed,andsenttothe browser. Thenit isunloadedfromthe memory.Ateachof these steps,methodsandeventsare available,which couldbe overriddenaccordingtothe needof the application.Inotherwords,youcanwrite yourown code to override the defaultcode.
  • 2. The Page classcreatesa hierarchical tree of all the controlson the page.All the componentsonthe page,exceptthe directives,are partof thiscontrol tree.You can see the control tree by addingtrace= "true"to the page directive.We will coverpage directivesandtracingunder'directives'and'event handling'. The page life cycle phasesare: Initialization Instantiationof the controlsonthe page Restorationandmaintenance of the state Executionof the eventhandlercodes Page rendering Understandingthe page cycle helpsinwritingcodesformakingsome specificthinghappenatanystage of the page life cycle.Italsohelpsinwritingcustomcontrolsandinitializingthematrighttime,populate theirpropertieswithview-statedataandrun control behaviorcode. Followingare the differentstagesof anASP.NETpage: Page request - WhenASP.NETgetsa page request,itdecideswhethertoparse and compile the page,orthere wouldbe a cachedversionof the page;accordinglythe response issent. Starting of page life cycle - At thisstage,the RequestandResponse objectsare set. If the requestisanoldrequestor postback, the IsPostBackpropertyof the page is setto true.The UICulture propertyof the page isalso set. Page initialization - At thisstage,the controls on the page are assigneduniqueIDby settingthe UniqueIDpropertyandthe themesare applied.Foranew request,postbackdatais loaded and the control propertiesare restoredtothe view-statevalues.
  • 3. Page load - At thisstage,control propertiesare setusingthe view state andcontrol state values. Validation - Validate methodof the validationcontrol iscalledandonitssuccessful execution, the IsValidpropertyof the page issetto true. Postback event handling - If the requestisa postback (oldrequest),the related eventhandlerisinvoked. Page rendering - At thisstage,view state forthe page and all controlsare saved.The page callsthe Rendermethodforeachcontrol and the outputof renderingiswrittentothe OutputStream classof the Response propertyof page. Unload - The renderedpage issenttothe clientandpage properties,suchasResponse and Request,are unloadedandall cleanupdone. ASP.NET Page Life Cycle Events At eachstage of the page life cycle,the page raisessome events,whichcouldbe coded.Anevent handlerisbasicallyafunctionorsubroutine,boundtothe event,usingdeclarative attributessuchas Onclickor handle. Followingare the page life cycle events: PreInit- PreInitisthe firsteventinpage life cycle.Itchecksthe IsPostBackpropertyanddetermines whetherthe page isa postback.It setsthe themesandmasterpages,createsdynamiccontrols,andgets and setsprofile propertyvalues.Thiseventcanbe handledbyoverloadingthe OnPreInitmethodor creatinga Page_PreInithandler.
  • 4. Init- Initeventinitializesthe control propertyandthe control tree isbuilt.Thiseventcanbe handledby overloadingthe OnInitmethodorcreatingaPage_Inithandler. InitComplete - InitComplete eventallowstrackingof view state.All the controlsturnonview-state tracking. LoadViewState- LoadViewState eventallowsloadingview state informationintothe controls. LoadPostData- Duringthisphase,the contentsof all the inputfieldsare definedwiththe <form>tagare processed. PreLoad- PreLoadoccurs before the postbackdata is loadedinthe controls.Thiseventcanbe handled by overloadingthe OnPreLoadmethodorcreatingaPage_PreLoadhandler. Load - The Load eventisraisedforthe page firstandthenrecursivelyforall childcontrols.The controls inthe control tree are created.Thiseventcan be handledbyoverloadingthe OnLoadmethodor creatinga Page_Loadhandler. LoadComplete - The loadingprocessiscompleted,control eventhandlersare run,andpage validation takesplace.Thiseventcanbe handledbyoverloadingthe OnLoadComplete methodorcreatinga Page_LoadComplete handler PreRender- The PreRendereventoccursjustbefore the outputisrendered.Byhandlingthisevent, pagesand controlscan performanyupdatesbefore the outputisrendered. PreRenderComplete- Asthe PreRendereventisrecursivelyfiredforall childcontrols,thiseventensures the completionof the pre-renderingphase. SaveStateComplete - State of control onthe page issaved.Personalization,control state andview state informationissaved.The HTML markupis generated.Thisstage canbe handledbyoverridingthe Rendermethodorcreatinga Page_Renderhandler.
  • 5. UnLoad - The UnLoad phase is the lastphase of the page life cycle.Itraisesthe UnLoad eventforall controlsrecursivelyandlastlyforthe page itself.Final cleanupisdone andall resourcesandreferences, such as database connections,are freed.Thiseventcanbe handledbymodifyingthe OnUnLoadmethod or creatinga Page_UnLoad handler.