httpModules not working on iis7
I have the following module
I have the following module
We have a URLRewriting module that is using a Response.Redirect in the BeginRequest event method to change the destination page.
Suppose that both FirstModule and SecondModule handle the Application_BeginRequest event. Will it execute in the order defined in the web.config?
Here is what I’m specifically trying to do:
I have a simple HTTPModule which does some custom session state management.
I would like to register an HttpHandler to include all subfolders of a root folder regardless of how far down they are nested. I would have expected the behavior with the below code to do just that but in fact it only includes items directly in the root folder.
I’m trying to access a Page within an HttpModule and I think I should do this by calling HttpContext.Current.Handler (This should reference the current page) but I’m getting null all the time.
UPDATE 1:
I am trying to design a system for something like this with ASP.net/C#.
Anyone got an idea of how to render an aspx page inside of an HttpModule and stream it back to the browser?