HttpModules sit in the ASP.NET processing pipeline and can listen for events during the processing lifecycle.
Modules are good solutions when the behavior you want to achieve is orthogonal to the page processing.
For instance, authentication, authorization, session state, and profiles are all implemented as HttpModules
by the ASP.NET runtime. You can plug-in and remove these modules to add or discard their functionality.
Here is a module to set the MasterPageFile property on every Page object.
Namespace:
Phoenix.HttpHandlersAssembly: Phoenix.UI (in Phoenix.UI.dll) Version: 2.9.3209.25658 (2.9.0.0)
Syntax
| C# |
|---|
public class MasterPageModule : IHttpModule |
Remarks
Remarks
From Scott Mitchell's article on master pages.
