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 :) 


Comments

Popular posts from this blog

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 .

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 .

Programming Languages Ranking | Feb 2015 | JavaScript Greatest Performance

This is my second post along the blog speaking about programming languages ranking according to  TIOBE  for software quanlity. Before heading off to speak about the ranking, I would like to point out that this rank is based on the amount of searches and content availiable on the web for each programming language, You can read the full definition of TIOBE index  here .