I'm looking to get a more thorough understanding of the ASP.NET page lifecycle. I'm in the process of building custom form controls and have found my knowledge in this area to be lacking.

- 43,168
- 21
- 122
- 188
5 Answers
I have this on my tack board. Helpful when your using Master pages.
- Content page PreInit event
- Master page controls Init event
- Content controls Init event
- Master page Init event
- Content page Init event
- Content page Load event
- Master page Load event
- Master page controls Load event
- Content page controls Load event
- Content page PreRender event
- Master page PreRender event
- Master page controls PreRender event
- Content page controls PreRender event
- Master page controls Unload event
- Content page controls Unload event
- Master page Unload event
- Content page Unload event

- 112,242
- 44
- 136
- 174
-
I have a similar tacked up on mine...29 events though...mabye I'll post it... – rball Mar 27 '09 at 16:54
-
I looked through mine, it has the ~Complete, ~OnBubble events. Honestly haven't really needed to know about these, so this is a pretty complete list as well. – rball Mar 27 '09 at 17:03
I've found this chart to be fairly useful. Provides a brief description as to what the piece is doing... John-Sheehan ASP.NET Life Cycle Events

- 26,821
- 23
- 116
- 160
This is the "original" MSDN overview. Pretty good:
http://msdn.microsoft.com/en-us/library/ms227435.aspx
Honestly, you shouldn't need our help to find these things. Try Google.

- 19,509
- 9
- 45
- 63
-
1I agree Tor, google can answer this question well. However, having all this information in a single location is also very beneficial for all involved. – Gavin Miller Mar 02 '09 at 14:45
-
Yeah, I'm all for google as well, but a collection of everything in one thread relating to this topic? Not bad... – rball Mar 27 '09 at 16:55
This diagram is specifically helpful in determining the order of events, but doesn't elaborate on them in any detail.

- 43,168
- 21
- 122
- 188
This doesn't directly answer the Page lifecycle question but this covers the Global event lifecycle with events like BeginRequest and EndRequest. It's good to understand how those work in relation to Pages.
https://web.archive.org/web/1/http://articles.techrepublic%2ecom%2ecom/5100-10878_11-5771721.html