SlideShare a Scribd company logo
1 of 12
ASP.NET LIFE CYCLE
IN DEPTH
ASP.NET life cycle guides in a brief tutorial about how :
- ASP.NET forms pages to create dynamic yield
- ASP.NET accumulates the pages progressively
- The application and its pages are initiated and handled
The ASP.NET life cycle could be partitioned into two gatherings:
- Application Life Cycle
- Page Life Cycle
The application life cycle has the certain accompanying stages:
- Client makes a manual request for getting access to the source page. Program sends
this request to the web server.
ASP.NET life cycle guides in a brief tutorial about how :
- ASP.NET forms pages to create dynamic yield
- ASP.NET accumulates the pages progressively
- The application and its pages are initiated and handled
The ASP.NET life cycle could be partitioned into two gatherings:
- Application Life Cycle
- Page Life Cycle
The application life cycle has the certain accompanying stages:
- Client makes a manual request for getting access to the source page. Program sends
ASP.NET life cycle guides in a brief tutorial about how :
- ASP.NET forms pages to create dynamic yield
- ASP.NET accumulates the pages progressively
- The application and its pages are initiated and handled
The ASP.NET life cycle could be partitioned into two gatherings:
- Application Life Cycle
- Page Life Cycle
The application life cycle has the certain accompanying stages:
- Client makes a manual request for getting access to the source page. Program sends
this request to the web server.
- A common pipeline gets the main request and the accompanying situations take place:
- An object of the class ApplicationManager is made.
- An object of the class HostingEnvironment is made to give manual data with respect to
the assets.
- Top level things in the application are assembled.
- Reaction articles are made. The application protests, for example, HttpContext,
HttpRequest and HttpResponse are made and introduced.
- An occurrence of the HttpApplication article is made and doled out to the request.
- The request is handled by the HttpApplication class. Diverse occasions are raised by this
class for handling the request.
At the point when a page is requested for, it is executed into the server memory, handled,
and sent to the program. Later it is unloaded from the memory. In between at every stage,
techniques and events are accessible, which could be rejected or canceled by need of the
application. Rather, you can compose a manual particular code to reject the default code.
The Page class makes a tree arranged in order of ranks, of all the controls on the page. All
the elements of the page beside the directives, are a part of this control tree.
You can see the control tree by including trace= “valid” to the page mandate. We will cover
page directives and following under “directives” and ‘event handling’.
The page life cycle stages are:
- Initialization
- Creation of the controls on the page
- Rebuilding and support of the state.
- Execution of the event handler codes
- Page rendering
A thorough tutorial of Page cycle proves benificial in any stage of page life cycle.
Execution of Page Life Study can help in solving all errors in between any stage of Page
Life. This Tutirial additionally helps in creating custom controls and executing them at ideal
time, generate their properties with perspective state information and run control behaviour
code.
Taking after are the distinctive phases of an ASP.NET page:
- Page request
When ASP.NET gets a page demand, it chooses whether to parse and order
the page, or there would be a cached version of the page; in like manner the reaction is
sent.
- Beginning of page life cycle
At this stage, the Request and Response objects are set. In the event that
the request is an old demand or post back, the IsPostBack property of the page is set to
genuine.
The UICulture property of the page is additionally set.
- Page initialization
At this stage, the controls on the page are relegated unique ID by setting the
UniqueID property and the themes are applied. For another requests, postback information
is
stacked and the control properties are reestablished to the view-state values.
- Page load
At this stage, control properties are set to utilize the view state and control state
values.
- Validation
Validate technique for the approval control is called and on its fruitful execution, the
IsValid property of the page is set to genuine.
- Postback occasion handling
If the request is a postback (old demand), the related event
handler is appealed
- Page rendering
At this stage, view state for the page and all controls are spared. The page calls the
Render technique for every control and the yield of rendering is composed to the
OutputStream class
of the Response property of page.
- Unload
The rendered page is sent to the customer and page properties, for example, Response
and
Request, are emptied and all cleanup is done.
ASP.NET Page Life Cycle Events -
At every phase of the page life cycle, the page raises a few events, which could be coded.
Event handling is essentially a capacity or subroutine, bound to the event, utilizing
definitive traits, for example, Onclick or handle.
Taking after are the page life cycle occasions:
- PreInit
PreInit is the principal event in page life cycle. It checks the IsPostBack property and
figures out if the
page is a postback. It sets the themes and master pages, makes dynamic controls, and
gets and sets
profile property estimations. This event handling can be taken care of by over-burdening
the
OnPreInit strategy or making a Page_PreInit handler.
- Init
Init event introduces the control property and the control tree is constructed. This event
handling can
be taken care of by over-burdening the OnInit strategy or making a Page_Init handler.
- InitComplete
InitComplete occasion permits following of view state. All the controls turn on view state
following.
- LoadViewState
LoadViewState occasion permits loading view state data into the controls.
- LoadPostData
During this stage, the elements of all the information fields are characterized with the
<form> tag are
handled.
- PreLoad
PreLoad happens before the post back information is loaded in the controls. This event
can be taken
care of by over-burdening the OnPreLoad technique or making a Page_PreLoad handler.
- Load
The Load event is raised for the page first and after that repeatedly for all kid controls. The
controls in
the control tree are made. This event handling can be taken care of by over-burdening the
OnLoad
strategy or making a Page_Load handler.
- LoadComplete
The loading procedure is finished, control event handlers are run, and page validation
happens. This
event handling can be taken care of by over-burdening the OnLoadComplete strategy or
making a
Page_LoadComplete handler
- PreRender
The PreRender event happens just before the output is rendered. By taking care of this
event, pages
and controls can perform any upgrades before the output is rendered.
- PreRenderComplete
As the PreRender event is repeatedly let go for all type of controls, this event guarantees
the
consummation of the pre-rendering stage.
- SaveStateComplete
State of control on the page is spared. Personalization, control state and view state data is
spared. The
HTML markup is created. This stage can be taken care of by abrogating the Render
technique or
making a Page_Render handler.
- UnLoad
The UnLoad stage is the last period of the page life cycle. It raises the UnLoad event for all
controls repeatedly and in conclusion for the page itself. Last cleanup is done and all
assets and
references, for example, database associations, are liberated. This event handling can be
taken care of
by changing the OnUnLoad strategy or making a Page_UnLoad handler.
For .NET training and placement reviews, please do visit CRB Tech Reviews.

More Related Content

What's hot

Asp.net event handler
Asp.net event handlerAsp.net event handler
Asp.net event handlerSireesh K
 
ASP.NET Page Life Cycle
ASP.NET Page Life CycleASP.NET Page Life Cycle
ASP.NET Page Life CycleAbhishek Sur
 
Integrating Angular.js with Rails (Wicked Good Ruby Conf lightening talk)
Integrating Angular.js with Rails (Wicked Good Ruby Conf lightening talk)Integrating Angular.js with Rails (Wicked Good Ruby Conf lightening talk)
Integrating Angular.js with Rails (Wicked Good Ruby Conf lightening talk)Jonathan Linowes
 
Offline First with Service Worker
Offline First with Service WorkerOffline First with Service Worker
Offline First with Service WorkerMuhammad Samu
 
Progressive Web Apps 101
Progressive Web Apps 101Progressive Web Apps 101
Progressive Web Apps 101Muhammad Samu
 
Using Angular with Rails
Using Angular with RailsUsing Angular with Rails
Using Angular with RailsJamie Davidson
 

What's hot (7)

Asp.net event handler
Asp.net event handlerAsp.net event handler
Asp.net event handler
 
ASP.NET Page Life Cycle
ASP.NET Page Life CycleASP.NET Page Life Cycle
ASP.NET Page Life Cycle
 
Life cycle of web page
Life cycle of web pageLife cycle of web page
Life cycle of web page
 
Integrating Angular.js with Rails (Wicked Good Ruby Conf lightening talk)
Integrating Angular.js with Rails (Wicked Good Ruby Conf lightening talk)Integrating Angular.js with Rails (Wicked Good Ruby Conf lightening talk)
Integrating Angular.js with Rails (Wicked Good Ruby Conf lightening talk)
 
Offline First with Service Worker
Offline First with Service WorkerOffline First with Service Worker
Offline First with Service Worker
 
Progressive Web Apps 101
Progressive Web Apps 101Progressive Web Apps 101
Progressive Web Apps 101
 
Using Angular with Rails
Using Angular with RailsUsing Angular with Rails
Using Angular with Rails
 

Viewers also liked

Viewers also liked (15)

Concepto de semáforo, exclusión mutua y sección critica
Concepto de semáforo, exclusión mutua y sección criticaConcepto de semáforo, exclusión mutua y sección critica
Concepto de semáforo, exclusión mutua y sección critica
 
NERMF Service Booklet
NERMF Service BookletNERMF Service Booklet
NERMF Service Booklet
 
Isabella e lohanna
Isabella e lohannaIsabella e lohanna
Isabella e lohanna
 
Matemática 3º ano
Matemática 3º anoMatemática 3º ano
Matemática 3º ano
 
Gabrielle e luana
Gabrielle e luanaGabrielle e luana
Gabrielle e luana
 
Trabajo de campo
Trabajo de campoTrabajo de campo
Trabajo de campo
 
aaaProblema de los filosofos
aaaProblema de los filosofosaaaProblema de los filosofos
aaaProblema de los filosofos
 
Cena filosofos c
Cena filosofos cCena filosofos c
Cena filosofos c
 
Filosofos cenando++
Filosofos cenando++Filosofos cenando++
Filosofos cenando++
 
Letra inicial
Letra inicialLetra inicial
Letra inicial
 
Completar com vogais 1º ano
Completar com vogais 1º anoCompletar com vogais 1º ano
Completar com vogais 1º ano
 
Solution smart lighning control
Solution smart lighning controlSolution smart lighning control
Solution smart lighning control
 
Teoría de autómatas
Teoría de autómatasTeoría de autómatas
Teoría de autómatas
 
Universidad fermín toro
Universidad fermín toroUniversidad fermín toro
Universidad fermín toro
 
Whitney L. Scott Resume 2017
Whitney L. Scott Resume 2017Whitney L. Scott Resume 2017
Whitney L. Scott Resume 2017
 

Similar to Asp dot net lifecycle in details

ASP.NET - Life cycle of asp
ASP.NET - Life cycle of aspASP.NET - Life cycle of asp
ASP.NET - Life cycle of asppriya Nithya
 
Parallelminds.asp.net with sp
Parallelminds.asp.net with spParallelminds.asp.net with sp
Parallelminds.asp.net with spparallelminder
 
Aspnetpagelifecycle 101129103702-phpapp02
Aspnetpagelifecycle 101129103702-phpapp02Aspnetpagelifecycle 101129103702-phpapp02
Aspnetpagelifecycle 101129103702-phpapp02santoshkjogalekar
 
Aspnet life cycle events
Aspnet life cycle eventsAspnet life cycle events
Aspnet life cycle eventsTrushant parkar
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NETPeter Gfader
 
Page life cycle
Page life cyclePage life cycle
Page life cycleanil4691
 
Building Modern Web Applications using React and Redux
 Building Modern Web Applications using React and Redux Building Modern Web Applications using React and Redux
Building Modern Web Applications using React and ReduxMaxime Najim
 
Server Controls of ASP.Net
Server Controls of ASP.NetServer Controls of ASP.Net
Server Controls of ASP.NetHitesh Santani
 
Chanhao Jiang And David Wei Presentation Quickling Pagecache
Chanhao Jiang And David Wei Presentation Quickling PagecacheChanhao Jiang And David Wei Presentation Quickling Pagecache
Chanhao Jiang And David Wei Presentation Quickling PagecacheAjax Experience 2009
 
13 asp.net session19
13 asp.net session1913 asp.net session19
13 asp.net session19Vivek chan
 
Rest web service_with_spring_hateoas
Rest web service_with_spring_hateoasRest web service_with_spring_hateoas
Rest web service_with_spring_hateoasZeid Hassan
 
Harish Understanding Aspnet
Harish Understanding AspnetHarish Understanding Aspnet
Harish Understanding Aspnetrsnarayanan
 
ASP.Net Presentation Part1
ASP.Net Presentation Part1ASP.Net Presentation Part1
ASP.Net Presentation Part1Neeraj Mathur
 
Asp .net web form fundamentals
Asp .net web form fundamentalsAsp .net web form fundamentals
Asp .net web form fundamentalsGopal Ji Singh
 

Similar to Asp dot net lifecycle in details (20)

ASP.NET - Life cycle of asp
ASP.NET - Life cycle of aspASP.NET - Life cycle of asp
ASP.NET - Life cycle of asp
 
Parallelminds.asp.net with sp
Parallelminds.asp.net with spParallelminds.asp.net with sp
Parallelminds.asp.net with sp
 
Aspnetpagelifecycle 101129103702-phpapp02
Aspnetpagelifecycle 101129103702-phpapp02Aspnetpagelifecycle 101129103702-phpapp02
Aspnetpagelifecycle 101129103702-phpapp02
 
Aspnet life cycle events
Aspnet life cycle eventsAspnet life cycle events
Aspnet life cycle events
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NET
 
Page life cycle
Page life cyclePage life cycle
Page life cycle
 
Web controls
Web controlsWeb controls
Web controls
 
As pnet pagelife_usha
As pnet pagelife_ushaAs pnet pagelife_usha
As pnet pagelife_usha
 
Building Modern Web Applications using React and Redux
 Building Modern Web Applications using React and Redux Building Modern Web Applications using React and Redux
Building Modern Web Applications using React and Redux
 
Server Controls of ASP.Net
Server Controls of ASP.NetServer Controls of ASP.Net
Server Controls of ASP.Net
 
Let's react - Meetup
Let's react - MeetupLet's react - Meetup
Let's react - Meetup
 
NET_Training.pptx
NET_Training.pptxNET_Training.pptx
NET_Training.pptx
 
Chanhao Jiang And David Wei Presentation Quickling Pagecache
Chanhao Jiang And David Wei Presentation Quickling PagecacheChanhao Jiang And David Wei Presentation Quickling Pagecache
Chanhao Jiang And David Wei Presentation Quickling Pagecache
 
13 asp.net session19
13 asp.net session1913 asp.net session19
13 asp.net session19
 
Rest web service_with_spring_hateoas
Rest web service_with_spring_hateoasRest web service_with_spring_hateoas
Rest web service_with_spring_hateoas
 
ASP.NET Lecture 2
ASP.NET Lecture 2ASP.NET Lecture 2
ASP.NET Lecture 2
 
Web forms in ASP.net
Web forms in ASP.netWeb forms in ASP.net
Web forms in ASP.net
 
Harish Understanding Aspnet
Harish Understanding AspnetHarish Understanding Aspnet
Harish Understanding Aspnet
 
ASP.Net Presentation Part1
ASP.Net Presentation Part1ASP.Net Presentation Part1
ASP.Net Presentation Part1
 
Asp .net web form fundamentals
Asp .net web form fundamentalsAsp .net web form fundamentals
Asp .net web form fundamentals
 

Recently uploaded

Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportDenish Jangid
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFVivekanand Anglo Vedic Academy
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...EduSkills OECD
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxAdelaideRefugio
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptxPoojaSen20
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024Borja Sotomayor
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxneillewis46
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnershipsexpandedwebsite
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesPooky Knightsmith
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppCeline George
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesAmanpreetKaur157993
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxCeline George
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
Climbers and Creepers used in landscaping
Climbers and Creepers used in landscapingClimbers and Creepers used in landscaping
Climbers and Creepers used in landscapingDr. M. Kumaresan Hort.
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17Celine George
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17Celine George
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...Nguyen Thanh Tu Collection
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...Gary Wood
 

Recently uploaded (20)

Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDF
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical Principles
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio App
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategies
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptx
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Climbers and Creepers used in landscaping
Climbers and Creepers used in landscapingClimbers and Creepers used in landscaping
Climbers and Creepers used in landscaping
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
 

Asp dot net lifecycle in details

  • 2. ASP.NET life cycle guides in a brief tutorial about how : - ASP.NET forms pages to create dynamic yield - ASP.NET accumulates the pages progressively - The application and its pages are initiated and handled The ASP.NET life cycle could be partitioned into two gatherings: - Application Life Cycle - Page Life Cycle The application life cycle has the certain accompanying stages: - Client makes a manual request for getting access to the source page. Program sends this request to the web server. ASP.NET life cycle guides in a brief tutorial about how : - ASP.NET forms pages to create dynamic yield - ASP.NET accumulates the pages progressively - The application and its pages are initiated and handled
  • 3. The ASP.NET life cycle could be partitioned into two gatherings: - Application Life Cycle - Page Life Cycle The application life cycle has the certain accompanying stages: - Client makes a manual request for getting access to the source page. Program sends ASP.NET life cycle guides in a brief tutorial about how : - ASP.NET forms pages to create dynamic yield - ASP.NET accumulates the pages progressively - The application and its pages are initiated and handled The ASP.NET life cycle could be partitioned into two gatherings: - Application Life Cycle - Page Life Cycle The application life cycle has the certain accompanying stages:
  • 4. - Client makes a manual request for getting access to the source page. Program sends this request to the web server. - A common pipeline gets the main request and the accompanying situations take place: - An object of the class ApplicationManager is made. - An object of the class HostingEnvironment is made to give manual data with respect to the assets. - Top level things in the application are assembled. - Reaction articles are made. The application protests, for example, HttpContext, HttpRequest and HttpResponse are made and introduced. - An occurrence of the HttpApplication article is made and doled out to the request. - The request is handled by the HttpApplication class. Diverse occasions are raised by this class for handling the request.
  • 5. At the point when a page is requested for, it is executed into the server memory, handled, and sent to the program. Later it is unloaded from the memory. In between at every stage, techniques and events are accessible, which could be rejected or canceled by need of the application. Rather, you can compose a manual particular code to reject the default code. The Page class makes a tree arranged in order of ranks, of all the controls on the page. All the elements of the page beside the directives, are a part of this control tree. You can see the control tree by including trace= “valid” to the page mandate. We will cover page directives and following under “directives” and ‘event handling’. The page life cycle stages are: - Initialization - Creation of the controls on the page - Rebuilding and support of the state. - Execution of the event handler codes - Page rendering A thorough tutorial of Page cycle proves benificial in any stage of page life cycle.
  • 6. Execution of Page Life Study can help in solving all errors in between any stage of Page Life. This Tutirial additionally helps in creating custom controls and executing them at ideal time, generate their properties with perspective state information and run control behaviour code. Taking after are the distinctive phases of an ASP.NET page: - Page request When ASP.NET gets a page demand, it chooses whether to parse and order the page, or there would be a cached version of the page; in like manner the reaction is sent. - Beginning of page life cycle At this stage, the Request and Response objects are set. In the event that the request is an old demand or post back, the IsPostBack property of the page is set to genuine. The UICulture property of the page is additionally set. - Page initialization At this stage, the controls on the page are relegated unique ID by setting the UniqueID property and the themes are applied. For another requests, postback information is
  • 7. stacked and the control properties are reestablished to the view-state values. - Page load At this stage, control properties are set to utilize the view state and control state values. - Validation Validate technique for the approval control is called and on its fruitful execution, the IsValid property of the page is set to genuine. - Postback occasion handling If the request is a postback (old demand), the related event handler is appealed - Page rendering At this stage, view state for the page and all controls are spared. The page calls the Render technique for every control and the yield of rendering is composed to the OutputStream class of the Response property of page.
  • 8. - Unload The rendered page is sent to the customer and page properties, for example, Response and Request, are emptied and all cleanup is done. ASP.NET Page Life Cycle Events - At every phase of the page life cycle, the page raises a few events, which could be coded. Event handling is essentially a capacity or subroutine, bound to the event, utilizing definitive traits, for example, Onclick or handle. Taking after are the page life cycle occasions: - PreInit PreInit is the principal event in page life cycle. It checks the IsPostBack property and figures out if the page is a postback. It sets the themes and master pages, makes dynamic controls, and gets and sets profile property estimations. This event handling can be taken care of by over-burdening the OnPreInit strategy or making a Page_PreInit handler.
  • 9. - Init Init event introduces the control property and the control tree is constructed. This event handling can be taken care of by over-burdening the OnInit strategy or making a Page_Init handler. - InitComplete InitComplete occasion permits following of view state. All the controls turn on view state following. - LoadViewState LoadViewState occasion permits loading view state data into the controls. - LoadPostData During this stage, the elements of all the information fields are characterized with the <form> tag are handled. - PreLoad PreLoad happens before the post back information is loaded in the controls. This event can be taken
  • 10. care of by over-burdening the OnPreLoad technique or making a Page_PreLoad handler. - Load The Load event is raised for the page first and after that repeatedly for all kid controls. The controls in the control tree are made. This event handling can be taken care of by over-burdening the OnLoad strategy or making a Page_Load handler. - LoadComplete The loading procedure is finished, control event handlers are run, and page validation happens. This event handling can be taken care of by over-burdening the OnLoadComplete strategy or making a Page_LoadComplete handler - PreRender The PreRender event happens just before the output is rendered. By taking care of this event, pages and controls can perform any upgrades before the output is rendered.
  • 11. - PreRenderComplete As the PreRender event is repeatedly let go for all type of controls, this event guarantees the consummation of the pre-rendering stage. - SaveStateComplete State of control on the page is spared. Personalization, control state and view state data is spared. The HTML markup is created. This stage can be taken care of by abrogating the Render technique or making a Page_Render handler. - UnLoad The UnLoad stage is the last period of the page life cycle. It raises the UnLoad event for all controls repeatedly and in conclusion for the page itself. Last cleanup is done and all assets and references, for example, database associations, are liberated. This event handling can be taken care of by changing the OnUnLoad strategy or making a Page_UnLoad handler.
  • 12. For .NET training and placement reviews, please do visit CRB Tech Reviews.