ASP.NET 2.0 page lifecyle(页面生命周期)

ASP.NET 2.0 page lifecyle

ASP.NET 2.0 event sequence changed a lot since 1.1. Here is the order:

 Application: BeginRequest

Application: PreAuthenticateRequest

Application: AuthenticateRequest

Application: PostAuthenticateRequest

Application: PreAuthorizeRequest

Application: AuthorizeRequest

Application: PostAuthorizeRequest

Application: PreResolveRequestCache

Application: ResolveRequestCache

Application: PostResolveRequestCache

Application: PreMapRequestHandler

Page: Construct

Application: PostMapRequestHandler

Application: PreAcquireRequestState

Application: AcquireRequestState

Application: PostAcquireRequestState

Application: PreRequestHandlerExecute

Page: AddParsedSubObject

Page: CreateControlCollection

Page: AddedControl

Page: AddParsedSubObject

Page: AddedControl

Page: ResolveAdapter

Page: DeterminePostBackMode

Page: PreInit

Control: ResolveAdapter

Control: Init

Control: TrackViewState

Page: Init

Page: TrackViewState

Page: InitComplete

Page: LoadPageStateFromPersistenceMedium

Control: LoadViewState

Page: EnsureChildControls

Page: CreateChildControls

Page: PreLoad

Page: Load

Control: DataBind

Control: Load

Page: EnsureChildControls

Page: LoadComplete

Page: EnsureChildControls

Page: PreRender

Control: EnsureChildControls

Control: PreRender

Page: PreRenderComplete

Page: SaveViewState

Control: SaveViewState

Page: SaveViewState

Control: SaveViewState

Page: SavePageStateToPersistenceMedium

Page: SaveStateComplete

Page: CreateHtmlTextWriter

Page: RenderControl

Page: Render

Page: RenderChildren

Control: RenderControl

Page: VerifyRenderingInServerForm

Page: CreateHtmlTextWriter

Control: Unload

Control: Dispose

Page: Unload

Page: Dispose

Application: PostRequestHandlerExecute

Application: PreReleaseRequestState

Application: ReleaseRequestState

Application: PostReleaseRequestState

Application: PreUpdateRequestCache

Application: UpdateRequestCache

Application: PostUpdateRequestCache

Application: EndRequest

Application: PreSendRequestHeaders

Application: PreSendRequestContent




参考资源:
http://msdn2.microsoft.com/en-us/library/ms178473.aspx
Application, Page and Control events in ASP.NET v2.0
http://weblogs.asp.net/jeff/archive/2004/07/04/172683.aspx

ASP.NET Page Life Cycle Overview
http://msdn2.microsoft.com/en-us/library/ms178472(vs.80).aspx

Events in ASP.NET Master and Content Pages 
http://msdn2.microsoft.com/en-us/library/dct97kc3.aspx

ASp.NET 2.0中Page事件的执行顺序
http://hi.baidu.com/microboat/blog/item/c421572c752931ed8b13998e.html

ASP.NET Application Life Cycle Overview 
http://msdn2.microsoft.com/en-us/library/ms178473(vs.80).aspx

http://blog.joycode.com/saucer/archive/2005/09/06/63004.aspx

http://blog.chinaunix.net/u1/34605/showart_321184.html
ASP.NET 2.0 中的异步页面
http://msdn.microsoft.com/msdnmag/issues/05/10/WickedCode/Default.aspx?loc=zh

posted @ 2007-08-13 22:55  emanlee  阅读(958)  评论(0编辑  收藏  举报