Exposed Events
The HTTPApplication class exposes the
following events for you to handle.
- AcquireRequestState
- AuthenticateRequest
- AuthorizeRequest
- BeginRequest
- EndRequest
- Error
- PostRequestHandlerExecute
- PreRequestHandlerExecute
- PreSendRequestContent
- PreSendRequestHeaders
- ReleaseRequestState
- ResolveRequestCache
- UpdateRequestCache
And that's just the HTTPApplication
class! You can see that there are loads of events there for you to choose from
(and some that you will never use).
Remember that it will automatically search
for an event handler like -
Application_EventName(sender as
object, e as EventArgs)
And you also still have Session_OnStart
and Session_OnEnd, you also can still use <object runat="server" ...>
tags like in ASP.