0
点赞
收藏
分享

微信扫一扫

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

小龟老师 2023-11-08 阅读 49

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.aspxApplication, 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事件的执行顺序
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.htmlASP.NET 2.0 中的异步页面
http://msdn.microsoft.com/msdnmag/issues/05/10/WickedCode/Default.aspx?loc=zh



举报

相关推荐

0 条评论