asp.net页面请求实现过程
我们知道一个“asp.net”程序在IIS中以一个HttpApplication的实例来运行,客户端提交request,则它开始工作,一个request从发出到结束的整个过程如下,它经过了若干的步骤,了解这些过程的先后顺序对开发和测试都有一定的帮助。
HttpApplication |
Page |
Control |
---|---|---|
BeginRequest |
||
AuthenticateRequest |
||
AuthorizeRequest |
||
ResolveRequestCache |
||
Page Constructor fires |
||
AcquireRequestState |
||
PreRquestHandlerExecute |
||
CreateControlCollection method |
||
Init | ||
trackViewState method | ||
Init |
||
TRackViewState method |
||
LoadViewState method | ||
Load |
||
DataBind | ||
Load | ||
Postback event handler methods |
||
PreRender |
||
SaveViewState method |
||
SaveViewState method | ||
Render method |
||
RenderControl method | ||
Unload | ||
Dispose | ||
Unload |
||
Dispose |
||
ReleaseRequestSate |
||
UpdateRequestCache |
||
EndRequest |