ASP.NET Events

Here is the full list of all events that occur in an ASP.NET application, from the standard modules, to the page, master page, page controls and master page controls.

I have not included the IIS 7 specific events (Log, for example).

 

What

When
HttpApplication.BeginRequest
HttpApplication.AuthenticateRequest
HttpApplication.PostAuthenticateRequest
HttpApplication.AuthorizeRequest
HttpApplication.PostAuthorizeRequest
HttpApplication.ResolveRequestCache
HttpApplication.PostResolveRequestCache
HttpApplication.PostMapRequestHandler
HttpApplication.AcquireRequestState
HttpApplication.PostAcquireRequestState
HttpApplication.PreRequestHandlerExecute
Page.FrameworkInitialize
Page.InitializeCulture
Page.OnPreInit
MasterPage.FrameworkInitialize
MasterPageControl.FrameworkInitialize
PageControl.FrameworkInitialize
MasterPageControl.OnInit
PageControl.OnInit
MasterPage.OnInit
Page.OnInit
Page.OnInitComplete
Page.LoadPageStateFromPersistenceMedium If IsPostBack
MasterPageControl.LoadControlState If IsPostBack, RegisterRequiresControlState was called and control state contains elements
PageControl.LoadControlState If IsPostBack, RegisterRequiresControlState was called and control state contains elements
MasterPageControl.LoadViewState If IsPostBack and ViewState contains elements
PageControl.LoadViewState If IsPostBack and ViewState contains elements
Page.OnPreLoad
Page.OnLoad
MasterPage.OnLoad
MasterPageControl.OnLoad
PageControl.OnLoad
{PageControl|MasterPageControl}.OnCustomEvent If a custom event was fired on a control declared on the page/master page
{PageControl|MasterPageControl}.OnBubbleEvent If a custom event was fired on a control declared on the page/master page
{Page|MasterPage}.OnBubbleEvent If a custom event was fired on a control declared on the page/master page
Page.OnBubbleEvent If a custom event was fired
Page.OnLoadComplete
Page.OnPreRender
MasterPage.OnPreRender
MasterPageControl.OnPreRender If Visible
PageControl.OnPreRender If Visible
Page.OnPreRenderComplete
MasterPageControl.SaveControlState
PageControl.SaveControlState
Page.SaveViewState
MasterPage.SaveViewState
MasterPageControl.SaveViewState
PageControl.SaveViewState
Page.SavePageStateToPersistenceMedium
Page.OnSaveStateComplete
Page.Render
MasterPage.Render
MasterPageControl.Render If Visible
PageControl.Render If Visible
Page.OnCommitTransaction If Transaction = Required or RequiresNew and a transaction was committed or no transaction was created
Page.OnAbortTransaction If Transaction = Required or RequiresNew and a transaction was rolled back
MasterPageControl.OnUnload
MasterPageControl.Dispose
PageControl.OnUnload
PageControl.Dispose
MasterPage.OnUnload
MasterPage.Dispose
Page.OnUnload
Page.Dispose
HttpApplication.PostRequestHandlerExecute
HttpApplication.ReleaseRequestState
HttpApplication.PostReleaseRequestState
HttpApplication.UpdateRequestCache
HttpApplication.PostUpdateRequestCache
HttpApplication.EndRequest
HttpApplication.PreSendRequestHeaders
HttpApplication.PreSendRequestContent

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值