SlideShare ist ein Scribd-Unternehmen logo
1 von 13
Visit: http://crbtech.in/Dot-Net-Training/
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
Visit: http://crbtech.in/Dot-Net-Training/
ASP.NET Application 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.
Visit: http://crbtech.in/Dot-Net-Training/
- 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.
Visit: http://crbtech.in/Dot-Net-Training/
ASP.NET Page Life Cycle
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.
Visit: http://crbtech.in/Dot-Net-Training/
Visit: http://crbtech.in/Dot-Net-Training/
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.
Visit: http://crbtech.in/Dot-Net-Training/
- 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 Is Valid
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
Visit: http://crbtech.in/Dot-Net-Training/
- 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.
Visit: http://crbtech.in/Dot-Net-Training/
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.
Visit: http://crbtech.in/Dot-Net-Training/
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
Visit: http://crbtech.in/Dot-Net-Training/
- 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.
Visit: http://crbtech.in/Dot-Net-Training/
- 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.
lTHANK YOU
Visit: http://crbtech.in/Dot-Net-Training/

Weitere ähnliche Inhalte

Was ist angesagt?

Asp.net life cycle
Asp.net life cycleAsp.net life cycle
Asp.net life cycleIrfaan Khan
 
Parallelminds.asp.net with sp
Parallelminds.asp.net with spParallelminds.asp.net with sp
Parallelminds.asp.net with spparallelminder
 
Progressive Web Apps 101
Progressive Web Apps 101Progressive Web Apps 101
Progressive Web Apps 101Muhammad Samu
 
Building React CRUD app in minutes?
Building React CRUD app in minutes?Building React CRUD app in minutes?
Building React CRUD app in minutes?Tomasz Bak
 
Service Worker - Reliability bits
Service Worker - Reliability bitsService Worker - Reliability bits
Service Worker - Reliability bitsjungkees
 
Real World Lessons in Progressive Web Application & Service Worker Caching
Real World Lessons in Progressive Web Application & Service Worker CachingReal World Lessons in Progressive Web Application & Service Worker Caching
Real World Lessons in Progressive Web Application & Service Worker CachingChris Love
 
ASP.Net Presentation Part1
ASP.Net Presentation Part1ASP.Net Presentation Part1
ASP.Net Presentation Part1Neeraj Mathur
 
Service workers
Service workersService workers
Service workersjungkees
 
ASP.NET AJAX Basics
ASP.NET AJAX BasicsASP.NET AJAX Basics
ASP.NET AJAX Basicspetrov
 
Spring Boot Actuator
Spring Boot ActuatorSpring Boot Actuator
Spring Boot ActuatorRowell Belen
 

Was ist angesagt? (18)

Asp.net life cycle
Asp.net life cycleAsp.net life cycle
Asp.net life cycle
 
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
 
Life cycle of web page
Life cycle of web pageLife cycle of web page
Life cycle of web page
 
Progressive Web Apps 101
Progressive Web Apps 101Progressive Web Apps 101
Progressive Web Apps 101
 
Page life cycle
Page life cyclePage life cycle
Page life cycle
 
Building React CRUD app in minutes?
Building React CRUD app in minutes?Building React CRUD app in minutes?
Building React CRUD app in minutes?
 
Jax Ws2.0
Jax Ws2.0Jax Ws2.0
Jax Ws2.0
 
Service Worker - Reliability bits
Service Worker - Reliability bitsService Worker - Reliability bits
Service Worker - Reliability bits
 
Real World Lessons in Progressive Web Application & Service Worker Caching
Real World Lessons in Progressive Web Application & Service Worker CachingReal World Lessons in Progressive Web Application & Service Worker Caching
Real World Lessons in Progressive Web Application & Service Worker Caching
 
Chapter 25
Chapter 25Chapter 25
Chapter 25
 
Service workers
Service workersService workers
Service workers
 
ASP.Net Presentation Part1
ASP.Net Presentation Part1ASP.Net Presentation Part1
ASP.Net Presentation Part1
 
Service workers
Service workersService workers
Service workers
 
Ajax & ASP.NET 2
Ajax & ASP.NET 2Ajax & ASP.NET 2
Ajax & ASP.NET 2
 
ASP.NET AJAX Basics
ASP.NET AJAX BasicsASP.NET AJAX Basics
ASP.NET AJAX Basics
 
Html5 offline
Html5 offlineHtml5 offline
Html5 offline
 
Spring Boot Actuator
Spring Boot ActuatorSpring Boot Actuator
Spring Boot Actuator
 

Andere mochten auch

Metallica
MetallicaMetallica
Metallicaaarra
 
Ext js user login panel
Ext js user login panelExt js user login panel
Ext js user login panelArun Prasad
 
Designing an ExtJS user login panel
Designing an ExtJS user login panelDesigning an ExtJS user login panel
Designing an ExtJS user login panelArun Prasad
 
Introduction to ExtJS lesson 01 Part two
Introduction to ExtJS lesson 01 Part twoIntroduction to ExtJS lesson 01 Part two
Introduction to ExtJS lesson 01 Part twoArun Prasad
 
Life as an asp.net programmer
Life as an asp.net programmerLife as an asp.net programmer
Life as an asp.net programmerArun Prasad
 
Introduction to ExtJS
Introduction to ExtJSIntroduction to ExtJS
Introduction to ExtJSArun Prasad
 
State management in ASP.NET
State management in ASP.NETState management in ASP.NET
State management in ASP.NETOm Vikram Thapa
 
ASP.NET State management
ASP.NET State managementASP.NET State management
ASP.NET State managementShivanand Arur
 
State management
State managementState management
State managementIblesoft
 

Andere mochten auch (9)

Metallica
MetallicaMetallica
Metallica
 
Ext js user login panel
Ext js user login panelExt js user login panel
Ext js user login panel
 
Designing an ExtJS user login panel
Designing an ExtJS user login panelDesigning an ExtJS user login panel
Designing an ExtJS user login panel
 
Introduction to ExtJS lesson 01 Part two
Introduction to ExtJS lesson 01 Part twoIntroduction to ExtJS lesson 01 Part two
Introduction to ExtJS lesson 01 Part two
 
Life as an asp.net programmer
Life as an asp.net programmerLife as an asp.net programmer
Life as an asp.net programmer
 
Introduction to ExtJS
Introduction to ExtJSIntroduction to ExtJS
Introduction to ExtJS
 
State management in ASP.NET
State management in ASP.NETState management in ASP.NET
State management in ASP.NET
 
ASP.NET State management
ASP.NET State managementASP.NET State management
ASP.NET State management
 
State management
State managementState management
State management
 

Ähnlich wie Asp.net life cycle in depth

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
 
ASP.NET - Life cycle of asp
ASP.NET - Life cycle of aspASP.NET - Life cycle of asp
ASP.NET - Life cycle of asppriya Nithya
 
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
 
Server Controls of ASP.Net
Server Controls of ASP.NetServer Controls of ASP.Net
Server Controls of ASP.NetHitesh Santani
 
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
 
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
 
Flows - what you should know before implementing
Flows - what you should know before implementingFlows - what you should know before implementing
Flows - what you should know before implementingDoria Hamelryk
 
Антон Серпутько “Testing and optimization of client-side performance”
Антон Серпутько “Testing and optimization of client-side performance” Антон Серпутько “Testing and optimization of client-side performance”
Антон Серпутько “Testing and optimization of client-side performance” Dakiry
 
How to navigate programmatically using react router
How to navigate programmatically using react routerHow to navigate programmatically using react router
How to navigate programmatically using react routerBOSC Tech Labs
 
Rest web service_with_spring_hateoas
Rest web service_with_spring_hateoasRest web service_with_spring_hateoas
Rest web service_with_spring_hateoasZeid Hassan
 
Modeling Safe Interface Interactions in Web Applications (ER´09)
Modeling Safe Interface Interactions in Web Applications (ER´09)Modeling Safe Interface Interactions in Web Applications (ER´09)
Modeling Safe Interface Interactions in Web Applications (ER´09)Jordi Cabot
 

Ähnlich wie Asp.net life cycle in depth (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?
 
ASP.NET - Life cycle of asp
ASP.NET - Life cycle of aspASP.NET - Life cycle of asp
ASP.NET - Life cycle of asp
 
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
 
Web controls
Web controlsWeb controls
Web controls
 
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
 
Server Controls of ASP.Net
Server Controls of ASP.NetServer Controls of ASP.Net
Server Controls of ASP.Net
 
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
 
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
 
NET_Training.pptx
NET_Training.pptxNET_Training.pptx
NET_Training.pptx
 
Browser Based Performance Testing and Tuning
Browser Based Performance Testing and TuningBrowser Based Performance Testing and Tuning
Browser Based Performance Testing and Tuning
 
Flows - what you should know before implementing
Flows - what you should know before implementingFlows - what you should know before implementing
Flows - what you should know before implementing
 
Web forms in ASP.net
Web forms in ASP.netWeb forms in ASP.net
Web forms in ASP.net
 
Антон Серпутько “Testing and optimization of client-side performance”
Антон Серпутько “Testing and optimization of client-side performance” Антон Серпутько “Testing and optimization of client-side performance”
Антон Серпутько “Testing and optimization of client-side performance”
 
How to navigate programmatically using react router
How to navigate programmatically using react routerHow to navigate programmatically using react router
How to navigate programmatically using react router
 
Let's react - Meetup
Let's react - MeetupLet's react - Meetup
Let's react - Meetup
 
Rest web service_with_spring_hateoas
Rest web service_with_spring_hateoasRest web service_with_spring_hateoas
Rest web service_with_spring_hateoas
 
Modeling Safe Interface Interactions in Web Applications (ER´09)
Modeling Safe Interface Interactions in Web Applications (ER´09)Modeling Safe Interface Interactions in Web Applications (ER´09)
Modeling Safe Interface Interactions in Web Applications (ER´09)
 

Mehr von sonia merchant

What does dot net hold for 2016?
What does dot net hold for 2016?What does dot net hold for 2016?
What does dot net hold for 2016?sonia merchant
 
What does .net hold for 2016?
What does .net hold for 2016?What does .net hold for 2016?
What does .net hold for 2016?sonia merchant
 
Data protection api's in asp dot net
Data protection api's in asp dot netData protection api's in asp dot net
Data protection api's in asp dot netsonia merchant
 
Authorization in asp dot net part 2
Authorization in asp dot net part 2Authorization in asp dot net part 2
Authorization in asp dot net part 2sonia merchant
 
Asp dot-net core problems and fixes
Asp dot-net core problems and fixes Asp dot-net core problems and fixes
Asp dot-net core problems and fixes sonia merchant
 
Search page-with-elasticsearch-and-dot-net
Search page-with-elasticsearch-and-dot-netSearch page-with-elasticsearch-and-dot-net
Search page-with-elasticsearch-and-dot-netsonia merchant
 
Build a-search-page-with-elastic search-and-dot-net
Build a-search-page-with-elastic search-and-dot-netBuild a-search-page-with-elastic search-and-dot-net
Build a-search-page-with-elastic search-and-dot-netsonia merchant
 
How to optimize asp dot-net application
How to optimize asp dot-net applicationHow to optimize asp dot-net application
How to optimize asp dot-net applicationsonia merchant
 
How to optimize asp dot net application ?
How to optimize asp dot net application ?How to optimize asp dot net application ?
How to optimize asp dot net application ?sonia merchant
 
Learn dot net attributes
Learn dot net attributesLearn dot net attributes
Learn dot net attributessonia merchant
 
Learn about dot net attributes
Learn about dot net attributesLearn about dot net attributes
Learn about dot net attributessonia merchant
 
Owin and-katana-overview
Owin and-katana-overviewOwin and-katana-overview
Owin and-katana-overviewsonia merchant
 
Top 15-asp-dot-net-interview-questions-and-answers
Top 15-asp-dot-net-interview-questions-and-answersTop 15-asp-dot-net-interview-questions-and-answers
Top 15-asp-dot-net-interview-questions-and-answerssonia merchant
 
Next generation asp.net v next
Next generation asp.net v nextNext generation asp.net v next
Next generation asp.net v nextsonia merchant
 
Dot net universal apps
Dot net universal appsDot net universal apps
Dot net universal appssonia merchant
 
Browser frame building with c# and vb dot net
Browser frame building  with c# and vb dot netBrowser frame building  with c# and vb dot net
Browser frame building with c# and vb dot netsonia merchant
 
A simplest-way-to-reconstruct-.net-framework
A simplest-way-to-reconstruct-.net-frameworkA simplest-way-to-reconstruct-.net-framework
A simplest-way-to-reconstruct-.net-frameworksonia merchant
 

Mehr von sonia merchant (20)

What does dot net hold for 2016?
What does dot net hold for 2016?What does dot net hold for 2016?
What does dot net hold for 2016?
 
What does .net hold for 2016?
What does .net hold for 2016?What does .net hold for 2016?
What does .net hold for 2016?
 
Data protection api's in asp dot net
Data protection api's in asp dot netData protection api's in asp dot net
Data protection api's in asp dot net
 
Authorization p iv
Authorization p ivAuthorization p iv
Authorization p iv
 
Authorization iii
Authorization iiiAuthorization iii
Authorization iii
 
Authorization in asp dot net part 2
Authorization in asp dot net part 2Authorization in asp dot net part 2
Authorization in asp dot net part 2
 
Asp dot-net core problems and fixes
Asp dot-net core problems and fixes Asp dot-net core problems and fixes
Asp dot-net core problems and fixes
 
Search page-with-elasticsearch-and-dot-net
Search page-with-elasticsearch-and-dot-netSearch page-with-elasticsearch-and-dot-net
Search page-with-elasticsearch-and-dot-net
 
Build a-search-page-with-elastic search-and-dot-net
Build a-search-page-with-elastic search-and-dot-netBuild a-search-page-with-elastic search-and-dot-net
Build a-search-page-with-elastic search-and-dot-net
 
How to optimize asp dot-net application
How to optimize asp dot-net applicationHow to optimize asp dot-net application
How to optimize asp dot-net application
 
How to optimize asp dot net application ?
How to optimize asp dot net application ?How to optimize asp dot net application ?
How to optimize asp dot net application ?
 
10 things to remember
10 things to remember10 things to remember
10 things to remember
 
Learn dot net attributes
Learn dot net attributesLearn dot net attributes
Learn dot net attributes
 
Learn about dot net attributes
Learn about dot net attributesLearn about dot net attributes
Learn about dot net attributes
 
Owin and-katana-overview
Owin and-katana-overviewOwin and-katana-overview
Owin and-katana-overview
 
Top 15-asp-dot-net-interview-questions-and-answers
Top 15-asp-dot-net-interview-questions-and-answersTop 15-asp-dot-net-interview-questions-and-answers
Top 15-asp-dot-net-interview-questions-and-answers
 
Next generation asp.net v next
Next generation asp.net v nextNext generation asp.net v next
Next generation asp.net v next
 
Dot net universal apps
Dot net universal appsDot net universal apps
Dot net universal apps
 
Browser frame building with c# and vb dot net
Browser frame building  with c# and vb dot netBrowser frame building  with c# and vb dot net
Browser frame building with c# and vb dot net
 
A simplest-way-to-reconstruct-.net-framework
A simplest-way-to-reconstruct-.net-frameworkA simplest-way-to-reconstruct-.net-framework
A simplest-way-to-reconstruct-.net-framework
 

Kürzlich hochgeladen

Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 

Kürzlich hochgeladen (20)

Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 

Asp.net life cycle in depth

  • 1. Visit: http://crbtech.in/Dot-Net-Training/ 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
  • 2. Visit: http://crbtech.in/Dot-Net-Training/ ASP.NET Application 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.
  • 3. Visit: http://crbtech.in/Dot-Net-Training/ - 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.
  • 4. Visit: http://crbtech.in/Dot-Net-Training/ ASP.NET Page Life Cycle 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.
  • 6. Visit: http://crbtech.in/Dot-Net-Training/ 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.
  • 7. Visit: http://crbtech.in/Dot-Net-Training/ - 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 Is Valid 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
  • 8. Visit: http://crbtech.in/Dot-Net-Training/ - 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.
  • 9. Visit: http://crbtech.in/Dot-Net-Training/ 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.
  • 10. Visit: http://crbtech.in/Dot-Net-Training/ 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
  • 11. Visit: http://crbtech.in/Dot-Net-Training/ - 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.
  • 12. Visit: http://crbtech.in/Dot-Net-Training/ - 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.