is there any way to use multiple response filters in ASP.NET?
HttpContext.Current.Response.Filter = MyFilter1
HttpContext.Current.Response.Filter = MyFilter2
This code is clear, can’t work. It overrides the current filter with the new instance.
So, what are your best practice for this scenario.
Thank and best regards.
Only a single response filter can be applied, so you need to aggregate all the work in this filter. Here’s an example how this could be achieved:
This way you can combine multiple streams.