Question on Chaining of HttpModules http://forums.asp.net/t/401312.aspx/1?Question+on+Chaining+of+HttpModules+Sun, 23 Nov 2003 16:43:19 -0500401312401312http://forums.asp.net/p/401312/401312.aspx/1?Question+on+Chaining+of+HttpModules+Question on Chaining of HttpModules Are we able to do some transformation during the chaining of HttpModules? Say: when the web application recieves a http request, the first module changes the stuff between tags to Upper case and then pass the modified request to the next module. I tried to modify the HttpApplication.HttpContext.Request (I suppose the HttpApplication is passed through all modules, not sure), but the properties are read-only. Is there a way to handle this? Thanks a lot. 2003-11-22T13:21:44-05:00401766http://forums.asp.net/p/401312/401766.aspx/1?Re+Question+on+Chaining+of+HttpModules+Re: Question on Chaining of HttpModules If you have a look at the Response.Filter property, this lets you do just what you suggest and modules using it do get chained together. So, for instance, you could have an encryption filter that obfuscates the HTML and then the output from this could be processed by another module which could compress it. The filter is a stream object that overrides the Write method to do whatever you want to the output, changing it as required. 2003-11-23T16:43:14-05:00