Skip to main content

Posts

Showing posts with the label ASP.NET Page Life Cycle

Understand ASP.NET Page Life Cycle and Data Control Events

If you are an ASP.NET developer you should definitely understand the Page's Life Cycle stages and all events raise during that cycle. Server controls also raise their own events and because of the fact that their life cycle is strongly connected to the Page's one, you must know the exact page's stage and event to dynamically initialize them or populate their properties. This post will try to make things a little bit more clearer. Open Visual Studio and create a new empty ASP.NET website. You will need only one page to run the examples so go and add a new web form. You may leave it's default name. Make sure the "Place code in separate file checkbox" is checked. Switch to the Source view and add a table with one row and two columns as follow. Add a button in order to cause PostBacks. The first thing we gonna see is the Page's Life Cycle events and the order they occur when the page is requested for first time or during a PostBack.
✔ Read More...
I guess y…