Thursday, July 15, 2010

ASP.NET Page Life Cycle

This blog demonstrates ASP.NET Page Life cycle and a series of processing steps and when an ASP.NET page runs, the page goes through a life cycle in which it performs a series of processing steps. These include initialization, instantiating controls, restoring and maintaining state, running event handler code, and rendering.

Below picture depicts whole asp.net page life cycle process and define all possible stage

ASP.NET Page Life Cycle
ASP.NET Page Life Cycle


The life cycle of an ASP.NET application starts when a request is sent by the browser to the web server [Internet Information Service (IIS)], the request is forwarded to Internet Server Application Programming Interface (ISAPI).

ISAPI is an N-tier API of Internet Information Services (IIS), Microsoft's collection of Windows-based web server services. ISAPI checks the extension of a file which is requested by the browser and based on that, it loads the HttpHandler and module which is responsible for handling the request.



ASP.NET HTTP RUNTIME

Application Manager create an application domain from application pool and after that ASP.NET creates an object of HttpRequest and HttpResponse for each request sent to the ASP.NET Web App and after that ASP.NET create the HttpApplication object, which invoke asp.net page life cycle process.

What is ASP.NET HttpRuntime

ASP.NET Page Life Cycle Phases:

  • Initialization
  • Load View State
  • Pre-Render
  • Save View State
  • Render
  • Unload

Initialization : 
During Initialization phase, all controls object on the page has been created and applied Unique ID to each control. Master page and themes are also applied to the page.

If the current request is a post-back, the post-back data has not yet been loaded and control property values have not been restored to the values from view state.

Load View State :
During Load phase, if the current request is a post-back, control properties are loaded with information recovered from view state and control state.

Pre-Render :
During Pre-render, we can make final changes to the page properties or control properties.

Save View State :
During Save View phase, it saves view state for the page and all control and now it is ready for rendering.

Render :
During the rendering phase, the page calls the Render method for each control and it returns html text response and set Page’s response property.

Unload :
Once Page is fully rendered and sent to client browser and after it destroy Page object now perform cleanup.

56 comments:

Kamila said...

Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging
Dot Net coaching Institute in Chennai | Dot Net Training in Chennai | Dot Net Training Center in Chennai
Software Testing Training Institute in Chennai | Manual Testing Training in Chennai | Testing Courses in Chennai
Java Training Institute in Chennai | Java Course and Certification | Core Java Certification in Chennai
PHP Certification Class | PHP Course in Chennai | PHP Training Institute in Chennai

Ankita Kumari said...

Thank you for writing this informative post. Looking forward to read more.
Best Web Design and Development Company In India

digitalhts said...

Incredible blogs! I read your comments its very fantastic and aggregate concept for all of us. Other wise who want to build carrier in dot-net with 100% job assitance and Get placement Mode contact us on 9311002620 or visit our websites:- https://htsindia.com/Courses/microsoft-courses/dotnettraininginstituteinsouthdelhi

Sandep said...

Good article, worth reading - Mobile and web development company in Virginia USA

Digital said...

Thanks for sharing information
ASP.Net Web development

KITS Technologies said...

nice post.
SAP Grc training
SAP Secrity training
oracle sql plsql training
go langaunage training
azure training
java training
salesforce training

Afridh A said...

Thank you for sharing. Softlogic Systems is a Chennai-based software training institute. Our comprehensive short term DotNet course is well-know among top IT employers. Visit our website for more information. Best DotNet training institute in Chennai

cibiya said...

thank you for sharing useful content over here
Automation Anywhere Training in Chennai

cibiya said...

thank you for sharing useful content over here
Automation Anywhere Training in Chennai

KITS Technologies said...

azure online training
java online training
salesforce online training
hadoop online training

Kaparthicynixit said...

Nice and good article.Thanks for sharing this useful information. If you want to learn DotNet course in online, please visit below site.
Visit us: Dot Net Online Training

Kaparthicynixit said...

Great Post, I read it well. very useful info Thank you so much for sharing.
Visit us: dot net training
Visit us: Dot Net Online Training Hyderabad
Visit us: .net online training india
Visit us: Dot Net Training Online India
Visit us: .Net Online Training Hyderabad

kumar said...

This post is so interactive and informative.keep updating more information...
Dot Net Training In Mumbai
Dot Net Training In Ahmedabad
Net Coaching Centre In Kochi
Net Coaching Centre In Kochi
Net Coaching In Kolkata
Know About .Net & Its Scope

sankar said...

tableau online training from india

Anonymous said...

Hire asp.net app Developer for advanced web & mobile apps and complete solutions on the client-side. Arka Softwares is the Leading web development company providing hourly/full-time asp.net application development Services. As per the latest design trends, their team of expert asp.net app developer offers innovative and eye-catching web and mobile app development services.

Kaparthicynixit said...

Good Post. I like your blog. Thanks for Sharing
Visit us: dot net training
Visit us: Dot Net Online Training Hyderabad

Tamis said...

Thanks for explaining the phases.

rakesh said...


This post is so interactive and informative.keep updating more information...
Dot Net Training In Mumbai
Dot Net Training In Ahmedabad
.Net Coaching Centre In Kochi
Dot Net Training In Trivandrum
.Net Coaching In Kolkata

Sapphire Solutions said...

Very interesting post..

About - ASP.NET Page Life Cycle

Key Benefits of Asp.Net Technologies for Web Application Development


.net development company in india

Cre8tivebot said...

Good Job! You have Shared your well knowledge... I will refer the people to the best IT Solutions providers click the below link:

IT Company
seo packages
ppc company australia
content marketing agency dubai
social media marketing company
web development australia
app development melbourne

Shiva Shakthi said...

Good blog!!! It is more impressive... thanks for sharing with us...
Why Software Testing is Important
Need For Software Testing

aptrongurgaon said...

ASP.NET Training in Gurgaon

Online E-Menu said...

Excellent information in this Post. Keep it up. Thanks for sharing Love to read it, Waiting For More new Update and I Already Read your Recent Post its Great Thanks,
hire dot net developers

inwizards said...

Excellent information in this Post. Keep it up. Thanks for sharing Love to read it, Waiting For More new Update and I Already Read your Recent Post its Great Thanks,
Best Reasons to Choose AngularJS Development in 2022

ajay said...

Excellent information in this Post. Keep it up. Thanks for sharing Love to read it, Waiting For More new Update and I Already Read your Recent Post its Great Thanks,
Empower your Business with ReactJS Development

Technology Group said...

Thanks a lot for all your valuable article! We are really happy about the your...

Experience Dot Net Developer - Hire .Net Developer - Inwizards LLC

Dot Net Developer

Hire .Net Developer

Thank You!

Top Developers said...

Thanks for sharing this informative article, it's very helpful and different.
keep sharing, thanks.

Ali Shair said...

Nice informative blog. Thanks for sharing. I am also a student of web development and your blog help me lot. If you live in Lahore or looking for best web development course in Lahore then, I personally recommend you digital training.

taranstech said...

This blog is so cool. I am learning dot net course online. This blogs helps me find out better understanding about dot net training. Thank you for this blog!

avinash said...

Very good information.

Salesforce Training

V4digitalservices said...

Melbourne App Development | V4digitalservices
You need to find the best Melbourne app development when users learn how to code everything. If you want to become a mobile app developer then learn to code it first. The platform might have an interactive tool that will teach users to code basics for your mobile application. App builders are perfect for existing business owners who want to use the mobile application to enhance the company. So if you want best mobile app development company in Australia, then contact us for the best services at affordable prices.

Other Services : crm software in Australia , domain hosting australia , Content marketing in Australia

Dipole Tech Innovations (OPC) Pvt Ltd said...

Outstanding work author.Thanks for sharing this article, very useful.
Visit: Full Stack Development Company USA
Hire ASP.NET Developers

Infine Marketing said...

Awesome Article Thanks for sharing your valuable information are you looking for a Hire >net developer from Technoduce to meet your business requirement on development, customization, designing, migration, maintenance, revamping, etc.

Scott Davis said...

I can tell that you must have done some excellent research on this topic. Nice share! SEO company dubai

Digital Tech said...

This topic is sufficient enough to take a powerful hold upon reader's interest. Cisco Distributor Saudia Arabia

Hire Web and Mobile App Developer said...

Thanks for sharing this informative article on Asp Dot webpage lifeciycle. If you have any requirement to Hire ASP.Net Developers for your web development solution. Please contact us.

Iqra technology said...

It is very useful article,for more informational blog visit to our website.
w.w.w.iqratechnology.com.

Iqra technology said...

Great Blog!
Thanks for sharing this excellent blog
Keep posting
Web Designing and Development Services
Hire Best PHP Developer
Hire Web Application Developer
Iqra Technology

WDP Technologies said...

Visit Us ASP.NET Development Company

Technoloader said...

Nice Post.Dapp Development Company

cat811 said...

A professional web developer for your projects. Get online now and start selling more. Affordable Prices for the best Quality job on time delivered. Hire dedicated developer

Helpful Insight said...

Nice Post Gaming App Development

coindeveloperindia said...

Thanks and visit Coin developer India website for all blockchain development solutions.

Mark said...

Thanks for sharing this informative article on "ASP.NET Page Life Cycle" If you want to ASP.Net Core Development Company for your project. Please visit us.

Nimble App Genie said...

Thank you so much for sharing this informative and knowledgeable blog. I will share this blog post with my friends. Here If you need any Fintech app developers you can contact us.

Medium Interactive said...

Thanks for sharing a valuable thoughts & love to hear more from you soon!

website design services

Ashish Thakur said...

Are you aspiring to become a proficient web developer? Your search for a leading Web Development Institute in Noida ends here! Welcome to APTRON Solutions, your gateway to unlocking a world of opportunities in the digital realm.

Green Apex said...

Thank you for sharing this thoughts.

vcube said...

This post contains excellent information. Continue as you are. Regards for sharing I enjoy reading it,  I'm waiting for more updates, and I have already read your most recent post, which was excellent.
Python Training Institute in Hyderabad

Coindevelopmentcompany said...

Coin Development Company Coin Development Company is a trusted partner in cryptocurrency development, offering expert team, tailored solutions, innovative technology, security, and comprehensive support. We specialize in coin creation, token development, smart contracts, and blockchain consulting. Our team focuses on staying ahead of the curve, ensuring your coin stands out in the market, and providing ongoing maintenance and updates to keep your coin running smoothly.

Coindevelopmentcompany said...

Coin Development Company Unlocking Success: Understanding the Coin Development company
Embarking on a successful future involves grasping the intricacies of Coin Development. Discover the key steps and insights with our streamlined guide. Dive into the world of Coin Development to pave your way to success.

James Cordon said...

Great post although you can visit CMOLDS Dubai one of the top web development companies in dubai specializing in websites and mobile applications.

POINTSPLUS said...

Boost your retail success! Implement our Customer Reward Management system to increase loyalty, drive sales, and enhance customer satisfaction. Transform casual shoppers into devoted fans. Act now and thrive!

Gulf Website Hub said...

CMS Website Development Dubai by Gulf Website Hub offers cutting-edge solutions for creating dynamic and user-friendly websites. Located in the heart of Dubai, UAE, our expert team specializes in crafting tailored CMS platforms to meet your business needs

SEO Expert said...

Great insights into web development companies in Surat! This guide is helpful for businesses looking to establish a strong online presence. Love the detailed information on each company’s expertise and services.

Taimoor Blogs said...

Website Development Company in USA

SQL Server - Identify unused indexes

 In this blog, we learn about the index usage information (SYS.DM_DB_INDEX_USAGE_STATS) and analyze the index usage data (USER_SEEKS, USER_S...