Creating Custom HttpModules
An HttpModule is a reusable piece of code that you can plug into the execution chain of an ASP.NET application. You can think of it as a piggyback mechanism whereby any application that receives a specific module can take advantage of the behavior of that module. An added benefit of HttpModules is that they can be reused among multiple applications because you need only to modify web.config to install them.
Understanding the ASP.NET Application Events
When an HttpModule has been installed, its Init method is invoked when the application begins. Within this method, any initialization code is run, and event handlers are attached to various application events. The following is a list of some of the more commonly utilized ...
Get Microsoft® Visual C#® .NET 2003 Unleashed 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.