文档介绍:
AspNet2.0页面生命周期
ASP.NET 2.0中几个对象的主要方法/事件流程
根据Lutz Roeder的Reflector对System.Web.dll的反编译,下面是HttpApplication,Page和Control对象的主要方法和事件的流程
PostBack
Page/Control Event
CallBack
注:所有的xx 事件都是由onxx方法引发的
HttpApplication
Page
Control
BeginRequest
AuthenticateRequest
DefaultAuthentication
PostAuthenticateRequest
AuthorizeRequest
PostAuthorizeRequest
ResolveRequestCache
PostResolveRequestCache
MapHttpHandler
Construct
PostMapRequestHandler
AcquireRequestState (Session)
PostAcquireRequestState
PreRequestHandlerExecute
CallHandler
DeterminePostBackMode
LoadScrollPosition
PerformPreInit
--PreInit
--InitializeThemes
--ApplyMasterPage
InitRecursive
(--ResolveAdapter
--ApplySkin
--
ResolveAdapter
Init
--TrackViewState)
InitRecursive
ApplySkin
Init
TrackViewState
InitComplete
LoadAllState
--LoadPageStateFromPersistenceMedium
--LoadViewStateRecursive
LoadControlStateInternal
--LoadControlState
LoadViewStateRecursive
--LoadViewState
ProcessPostData
PreLoad
LoadRecursive
(--Load)
LoadRecursive
--Load
loadPostData 加载回发数据
RaiseChangedEvents 判断控件数据是否改变
RaisePostBackEvent 这个才是控件真正的各种事件
LoadComplete
RaiseCallbackEvent
--return
PreRenderRecursiveI
内容来自淘豆网www.taodocs.com转载请标明出处.