HttpApplication Events

Now that you’ve seen how to implement an HttpModule, it’s time to look at the events that you can handle and when they are called.

The HttpApplication object has several events that can be handled by an HttpModule. Table 25.1 lists these events. Because any number of HttpModules can handle these events, take particular care if you need to have your HttpModule be the only one that handles a given event. The only way to guarantee that no other HttpModule handles an event is to know which other HttpModules are registered for your Web application and to know what events are handled by the other HttpModules. For example, you have two HttpModules that handle the AuthenticateRequest event. These two HttpModules provide different ...

Get Special Edition Using® Microsoft® ASP.NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.