开发者

Can you remove response filters?

开发者 https://www.devze.com 2022-12-21 21:41 出处:网络
I have an HttpModule where I lookup the content type and then apply some filters to the response. There are some instances where I don\'t want to apply one of these filters but that isn\'t determined

I have an HttpModule where I lookup the content type and then apply some filters to the response. There are some instances where I don't want to apply one of these filters but that isn't determined until the page_load ev开发者_如何学运维ent later on. Is there any way to remove a filter??


...I think the answer is, No...


This should work:

Response.Filter = null;

It removes all filters, not just one, but worked for me.

0

精彩评论

暂无评论...
验证码 换一张
取 消