Chapter 17 Quick Reference
To | Do This |
Create a custom module assembly | Create a new class implementing IHttpModule Override Init Override Disposet |
Insert the module into the processing chain | Mention the module in the <httpModule> node of the application's Web.Config file |
Handle application events in the module | Write a handler (within the module) for every event you want to handle During the Init method, subscribe to the events by attaching the event handlers to the events |
Override the application object in Global.asax file | Select Web site | Add New Item Select Global Application Template from the templates Insert your own code for responding to the application-wide events |
Use the application's dictionary | Access the application object (it's always available from the current HttpContext). Use the indexer notation to access the dictionary |