Skip to main content

Introduction To ASP.NET Page Life Cycle

Hello Geeks .. As you Know this is Ramy , I'm writing today about an important little thing that you should keep in mind while Programming Under ASP.NET Framework.

As You may know .. Everything happens in computer world happens in ordered steps for certain reasons and to be a professional in a certain field you need to know not only how to make things work but ALSO How things happen.

The Benefit of knowing how things happen specially in Programming world is that when you know what will happen first , you will be able to re-arrange some functions or such so you will optimize your little program performance .. Here You Will feel the difference between An Application that was Created by A normal programmer and An Application that was Created by a Geek or Professional Programmer .

It's Pretty long Introduction to this Post but it really matters to keep it in your mind before reading the main Post Task .. Anyways ,Let's Get started ...

ASP.NET Life Cycle : 

  • PreInit : This Event Is raised when the start page is complete and Before the initialization page begins.
  • Init : It Occurs After All Controls Have Been Initialized.
  • Init Complete : This Even Occurred at the end of page Initialization Stage.
  • PreLoad : This event raised after the page loads view state for itself and all controls and after it processes PostBack data that is included with the request instance.
  • Load : This Method Calls The OnLoad Method On the Page Object,and then recursively does the same for each child control until the page and all controls are loaded.
  • Load Complete : Raised At the End of Event-Handling Stage.
  • PreRender : This event raised after the Page object has created all controls that are required in order to render the page, including child controls of composite controls.
  • PreRender Complete : This event raised after each data bound control whose DataSourceID property is set calls its DataBind method. 
  • SaveState Complete : This event raised after view state and control state have been saved for the page and for all controls.
  • UnLoad : This event raised for each control and then for the page. Use this event to do final cleanup for specific controls, such as closing control-specific database connections.

Related Posts : 

I hope You Find It Useful and Informative For you people .. 
Best Wishes Everybody :) 


Popular posts from this blog

How To Create A Change Password Form in a C# Application

Hello Geeks .. This little post is a free sample C# Windows Form that can be used to change password in a SQL Database .

How To Create C# Chat Application

Hello Geeks .. Today I gonna show you How to make a Chat Application Using Microsoft C#.NET 5.0 .
You Can Use Older Versions Since there is nothing special in the application that only belongs to C# 5.0 .

This Application Was Created To Allow Two Computers To "Chat" Using IP Addresses Also you Can Open two Clients On The Same Computer and Use Same IP Address But Different Port.. It is simple and Easy to Use And Develop .. I also Uploaded The Full Working Project With It's Source Code On MediaFire.. You Will Find The Link At The End Of the Post :)

C# Full Pharmacy Project With Source code

Hello Geeks .. This post is one of our completely Free Projects .. It is a Pharmacy Project that can perform a lot of operations you can also find the (.dll) files for the working Barcode Reader Machines in your country and add it to the project .