locked
more HttpModules in same project, RRS feed

  • Question

  • User1967119864 posted

    I have a project with 2 httpModules in use. Both my httpModules need only to execute on one specific page, so in my BeginRequest I check in this in the page to execute on, and if not i just "return". I feel this solution could take up resources, how can i change stuff so that the specic httoModules is only attached to the page i need it to attach to ?? .

    If I make a new web.config file in the folder with the page, and try to attach the httpModule for only this folder, it is not working, it seems like httpModules can only be attach in project roots

    ??

    Best regards Anders, Denmark.

    Wednesday, June 29, 2005 8:13 AM

All replies

  • User1109032460 posted
    If you only need these on a specific page, then the likelihood is that you should implement the code as a custom HttpHandler, not an HttpModule.
    Thursday, June 30, 2005 12:39 AM
  • User1967119864 posted
    Thx Alot, I am lokkiing into HttpHandlers instead
    Friday, July 1, 2005 4:15 AM