Asp.net page events fire order

by fred on April 17, 2005

in Code

Microsoft’s article on this is more detailed than the following table.

Here is a quick summary of the page events and their load order. Taken from AspAlliance

Page Events Summary

MethodPostBackControls

ConstructorAlwaysAll
AddParsedSubObjectAlwaysAll
DeterminePostBackModeAlwaysPage
OnInitAlwaysAll

LoadPageStateFromPersistenceMediumPostBackPage
LoadViewStatePostBackAll
ProcessPostData1PostBackPage
OnLoadAlwaysAll

ProcessPostData2PostBackPage
RaiseChangedEventsPostBackPage
RaisePostBackEventPostBackPage
OnPreRenderAlwaysAll

SaveViewStateAlwaysAll
SavePageStateToPersistenceMediumAlwaysPage
RenderAlwaysAll
OnUnloadAlwaysAll

Related posts:

  1. Determining the size dimensions of uploaded images in ASP.NET This article how to describes how to determine the width and height of an image after it has been uploaded...
  2. An Extensible Master-Page Framework for ASP.NET 1.1 Using Pattern Oriented Design Development of a framework for master-pages using ASP.NET and C#. More… Masterpage framework in ASP.NET 1.X and ASP.NET 2.0 More…...
  3. Improving Application Performance in .Net Application performance has always been a concern for Web Application developers. This article contains guidelines and tips for maximizing application...
  4. Asp.net HTML Color Names On this page you will find a table of color names that are supported by most browsers....
  5. ASP.NET server controls overview This article provides an introduction to the ASP.NET server controls...

Previous post:

Next post: