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

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 .

5 Strategies to make money with Google AdSense

Hello geeks .. Before we start talking about those strategies you need to be sure that there's nothing called "Best Strategy" toward making money with  Google AdSense  as every one has his own experience and way of making money with this program and what may success with one person may fail with another person . So let us know some of those strategies for making money with AdSense Program .

Think Outside The Box

It was very much about not believing the traditional way of doing things. Don’t be afraid. Just because people tell you it can’t be done, that doesn’t necessarily mean that it can’t be done. It just means that they can’t do it. I think it’s always fun to think outside of the box and try to find new solutions to existing problems. I think simplicity is always a winner. If you can find a simpler solution to something—that has certainly for me been a guiding principle. Always try to make it simpler. I think to be really good at something, you have to be passionate about it too. That’s something you can’t learn. That’s just something that you have, I think. I got into programming not because I wanted to make lots of money or because someone told me to. I got into it because I just got totally absorbed by it. You just could not stop me. I had to write programs. It was the only thing I wanted to do. I was very, very passionate about it. You have to have that passion to get really good ...