• Adam Freeman


In the previous chapter, I showed you how to handle life-cycle requests in the global application class. The problem with this approach is that the code quickly becomes a mess, especially when you are trying to perform different kinds of work driven by the same set of events. In this chapter, I describe modules, which are self-contained components that receive and handle life-cycle requests and which can monitor or modify a request and its response. Not only do modules avoid a morass of code in the global application class, but they can be packaged up and used in multiple applications, providing a useful mechanism for creating reusable features for customizing or debugging the ASP.NET request handling process.


Init Method Visual Studio Event Handler Context Object Module Object 

Copyright information

© Adam Freeman 2014

Authors and Affiliations

  • Adam Freeman
    • 1
  1. 1.PAUK

Personalised recommendations