SlideShare a Scribd company logo
ASP.NET Page Life Cycle
Disclaimer: This presentation is prepared by trainees of
baabtra as a part of mentoring program. This is not official
document of baabtra –Mentoring Partner
Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt .
Ltd
Week Target Achieved
1 30 22
2 30 23
3 30 25
Typing Speed
Jobs Applied
Week Company Designation Applied Date Current Status
1
2
3
ASP .Net Page Life Cycle
MuhammedAjmal
ajuik2008@gmail.com
www.facebook.com/username
twitter.com/username
in.linkedin.com/in/profilename
9745020951
Overview
• Introduction
• General stages
• Events
Introduction
When a web page is requested to the web server, it
goes through a series of sequence of steps before it is
returned back to the web browser.
1. Web Application creates an instance of the requested web
form.
2. Processes the events of the web form.
3. Generates the HTML, and sends the HTML back to the
requested client.
4. The web form gets destroyed and removed from the
memory.
Genera Steps
• S = Start
• I = Initialization
• L = Load
• V = Validate
• E = Event Handlers
• R = Render
Postback
• A Post Back is any request for a page that is not the
first request.
– Check post back using isPostback()
View state
• The view state store the page specific information when a page
posted back to the server.
Page life cycle Events
PreInit
• Raised after the start stage is complete and before the
initialization stage begins
– set isPostBack property
– Possible to change or set Master page, themes
– Creates or recreates dynamic controls
Page_PreInit
Page_Init
• Raised after all controls have been initialized and any
skin settings have been applied.
• The Page_Init event fires only the first time the page
is loaded.
Init Complete
•View state functionality is turned on for server control
PreLoad
•PreLoad executes after InitComplete method.
• page has loaded values from view state.
PreLoad
Load()
• This event loads individual controls.
• We can create the connection initialization for any kind of
external source like database connection
• We can also set the control properties
• We can created our own Load method
Control events
• Use these events to handle specific control events,
• If this is an postback request , Corresponding events will
triggered.
• Control events
LoadComplete
• This event can be used when all the event processing has
been done in the page.
PreRender
• Each control of the page has a PreRender event which is
being invoked.
• DataBind method for all control has also been called
• If we want to change any thing to any control this is the
last event where we can do because after the pageRender
starts
• SaveViewState
• ViewState Monitoring is turned off as here all the
ViewState Data need to be saved.
• View State data saved in hidden filed called
_VIEWSTATE
•RenderPages
• calls the Render method for each and every
control.
•Text writer that writes the output to the as output
stream
•Output steam set to the page's Response property.
Unload
• This is the last event of asp.net page life cycle
• This ensure the Request and Response has been set to
null.
• This is called only after the content of the page fully
rendered and response sent to client
Order of execution
ASP.NET Page Life Cycle
Thank you
If this presentation helped you, please visit our
page facebook.com/baabtra and like it.
Thanks in advance.
www.baabtra.com | www.massbaab.com |www.baabte.com
Contact Us
Emarald Mall (Big Bazar Building)
Mavoor Road, Kozhikode,
Kerala, India.
Ph: + 91 – 495 40 25 550
NC Complex, Near Bus Stand
Mukkam, Kozhikode,
Kerala, India.
Ph: + 91 – 495 40 25 550
Start up Village
Eranakulam,
Kerala, India.
Email: info@baabtra.com
IKK Road,
East Hill, Kozhikode
Kerala, India.
Ph: + 91 – 495 30 63 624
NIT-TBI,
NIT Campus, Kozhikode,
Kerala, India.

More Related Content

PPTX
ASP.NET Page Life Cycle
PPTX
Interactive os
PPTX
Jsf presentation
PPT
Entity relationship modelling
PPTX
Recursion
PPT
ASP.NET Page Life Cycle
Interactive os
Jsf presentation
Entity relationship modelling
Recursion

What's hot (20)

PPTX
Java Beans
PDF
Data Modeling Using the EntityRelationship (ER) Model
PPTX
Unit iv
PPTX
Er diagram
PPTX
Error detection recovery
PPTX
Hibernate ppt
PPTX
Classes, objects in JAVA
PPTX
PHP File Handling
PPTX
The Relational Database Model
PDF
Introduction to database-ER Model
PPTX
Basics of JAVA programming
PPTX
Web development with Python
PPTX
Cookies in servlets.ppt
PDF
Python Course | Python Programming | Python Tutorial | Python Training | Edureka
PDF
The Relational Data Model and Relational Database Constraints
PDF
Python Programming
PDF
Datatypes in python
PPTX
Text Editor in System software
ODP
Python unit testing
PPT
Introduction to PHP.ppt
Java Beans
Data Modeling Using the EntityRelationship (ER) Model
Unit iv
Er diagram
Error detection recovery
Hibernate ppt
Classes, objects in JAVA
PHP File Handling
The Relational Database Model
Introduction to database-ER Model
Basics of JAVA programming
Web development with Python
Cookies in servlets.ppt
Python Course | Python Programming | Python Tutorial | Python Training | Edureka
The Relational Data Model and Relational Database Constraints
Python Programming
Datatypes in python
Text Editor in System software
Python unit testing
Introduction to PHP.ppt
Ad

Similar to ASP.NET Page Life Cycle (20)

PPTX
Page life cycle IN ASP.NET
PPTX
Aspnetpagelifecycle 101129103702-phpapp02
PPTX
Parallelminds.asp.net with sp
PPTX
Page life cycle
PDF
Aspnet life cycle events
PPT
Asp.net control
PPTX
ASP.NET - Life cycle of asp
PDF
Asp.net life cycle
PPT
asp-2005311dgvdfvdfvfdfvdvfdbfdb03252 (1).ppt
DOC
Why ASP.NET Development is Important?
DOC
Asp dot net lifecycle in details
PPTX
TAG Presents: NetSuite SuiteFlow 101
 
PPTX
Asp.net page lifecycle
PPTX
Mastering the Lightning Framework - Part 2 - JF Paradis.pptx
PDF
Neoload
PPTX
Asp.net life cycle in depth
PDF
Optimizing your use of react life cycles by shedrack akintayo
PPTX
Automated Acceptance Testing Example
Page life cycle IN ASP.NET
Aspnetpagelifecycle 101129103702-phpapp02
Parallelminds.asp.net with sp
Page life cycle
Aspnet life cycle events
Asp.net control
ASP.NET - Life cycle of asp
Asp.net life cycle
asp-2005311dgvdfvdfvfdfvdvfdbfdb03252 (1).ppt
Why ASP.NET Development is Important?
Asp dot net lifecycle in details
TAG Presents: NetSuite SuiteFlow 101
 
Asp.net page lifecycle
Mastering the Lightning Framework - Part 2 - JF Paradis.pptx
Neoload
Asp.net life cycle in depth
Optimizing your use of react life cycles by shedrack akintayo
Automated Acceptance Testing Example
Ad

More from baabtra.com - No. 1 supplier of quality freshers (20)

PPTX
Agile methodology and scrum development
PDF
Acquiring new skills what you should know
PDF
Baabtra.com programming at school
PDF
99LMS for Enterprises - LMS that you will love
PPTX
Chapter 6 database normalisation
PPTX
Chapter 5 transactions and dcl statements
PPTX
Chapter 4 functions, views, indexing
PPTX
PPTX
Chapter 2 grouping,scalar and aggergate functions,joins inner join,outer join
PPTX
Chapter 1 introduction to sql server
PPTX
Chapter 1 introduction to sql server
Agile methodology and scrum development
Acquiring new skills what you should know
Baabtra.com programming at school
99LMS for Enterprises - LMS that you will love
Chapter 6 database normalisation
Chapter 5 transactions and dcl statements
Chapter 4 functions, views, indexing
Chapter 2 grouping,scalar and aggergate functions,joins inner join,outer join
Chapter 1 introduction to sql server
Chapter 1 introduction to sql server

Recently uploaded (20)

PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PPTX
1. Introduction to Computer Programming.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
Tartificialntelligence_presentation.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Electronic commerce courselecture one. Pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
NewMind AI Weekly Chronicles - August'25-Week II
Encapsulation_ Review paper, used for researhc scholars
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Accuracy of neural networks in brain wave diagnosis of schizophrenia
“AI and Expert System Decision Support & Business Intelligence Systems”
SOPHOS-XG Firewall Administrator PPT.pptx
1. Introduction to Computer Programming.pptx
Unlocking AI with Model Context Protocol (MCP)
MYSQL Presentation for SQL database connectivity
Tartificialntelligence_presentation.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Programs and apps: productivity, graphics, security and other tools
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Network Security Unit 5.pdf for BCA BBA.
Electronic commerce courselecture one. Pdf
Building Integrated photovoltaic BIPV_UPV.pdf
A comparative analysis of optical character recognition models for extracting...
Mobile App Security Testing_ A Comprehensive Guide.pdf
Advanced methodologies resolving dimensionality complications for autism neur...

ASP.NET Page Life Cycle

  • 2. Disclaimer: This presentation is prepared by trainees of baabtra as a part of mentoring program. This is not official document of baabtra –Mentoring Partner Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt . Ltd
  • 3. Week Target Achieved 1 30 22 2 30 23 3 30 25 Typing Speed
  • 4. Jobs Applied Week Company Designation Applied Date Current Status 1 2 3
  • 5. ASP .Net Page Life Cycle MuhammedAjmal ajuik2008@gmail.com www.facebook.com/username twitter.com/username in.linkedin.com/in/profilename 9745020951
  • 7. Introduction When a web page is requested to the web server, it goes through a series of sequence of steps before it is returned back to the web browser. 1. Web Application creates an instance of the requested web form. 2. Processes the events of the web form. 3. Generates the HTML, and sends the HTML back to the requested client. 4. The web form gets destroyed and removed from the memory.
  • 8. Genera Steps • S = Start • I = Initialization • L = Load • V = Validate • E = Event Handlers • R = Render
  • 9. Postback • A Post Back is any request for a page that is not the first request. – Check post back using isPostback() View state • The view state store the page specific information when a page posted back to the server.
  • 10. Page life cycle Events
  • 11. PreInit • Raised after the start stage is complete and before the initialization stage begins – set isPostBack property – Possible to change or set Master page, themes – Creates or recreates dynamic controls
  • 13. Page_Init • Raised after all controls have been initialized and any skin settings have been applied. • The Page_Init event fires only the first time the page is loaded. Init Complete •View state functionality is turned on for server control
  • 14. PreLoad •PreLoad executes after InitComplete method. • page has loaded values from view state.
  • 16. Load() • This event loads individual controls. • We can create the connection initialization for any kind of external source like database connection • We can also set the control properties • We can created our own Load method
  • 17. Control events • Use these events to handle specific control events, • If this is an postback request , Corresponding events will triggered.
  • 19. LoadComplete • This event can be used when all the event processing has been done in the page.
  • 20. PreRender • Each control of the page has a PreRender event which is being invoked. • DataBind method for all control has also been called • If we want to change any thing to any control this is the last event where we can do because after the pageRender starts
  • 21. • SaveViewState • ViewState Monitoring is turned off as here all the ViewState Data need to be saved. • View State data saved in hidden filed called _VIEWSTATE
  • 22. •RenderPages • calls the Render method for each and every control. •Text writer that writes the output to the as output stream •Output steam set to the page's Response property.
  • 23. Unload • This is the last event of asp.net page life cycle • This ensure the Request and Response has been set to null. • This is called only after the content of the page fully rendered and response sent to client
  • 27. If this presentation helped you, please visit our page facebook.com/baabtra and like it. Thanks in advance. www.baabtra.com | www.massbaab.com |www.baabte.com
  • 28. Contact Us Emarald Mall (Big Bazar Building) Mavoor Road, Kozhikode, Kerala, India. Ph: + 91 – 495 40 25 550 NC Complex, Near Bus Stand Mukkam, Kozhikode, Kerala, India. Ph: + 91 – 495 40 25 550 Start up Village Eranakulam, Kerala, India. Email: info@baabtra.com IKK Road, East Hill, Kozhikode Kerala, India. Ph: + 91 – 495 30 63 624 NIT-TBI, NIT Campus, Kozhikode, Kerala, India.