I am trying to use a filter to insert certain text into ScriptResource.axd that is generated by the ScriptManager when I put my Js into a CompositeScript element.
I find this task next to impossible.
This problem translated in Asp.Net terms means that I am trying to filter the output from a builtin handler (System.Web.Handlers.ScriptResourceHandler: without source code)..
When an handler is associated with the request the HttpModules where I could apply the filtering are not even loaded. So I tried calling the "ProcessRequest" of System.Web.Handlers.ScriptResourceHandler from an earlier event using an HttpModule (i.e. in PostRequestHandlerExecute) and then appling the filter on PostReleaseRequestState... This gives me a string with an encoding that is impossible to convert (maybe gzip is already used?).
Is what I am trying to do even possible? Can you give me any suggestions on how you would proceed?
Let me know if you need more info or source code.