您可以删除响应过滤器吗?
我有一个 HttpModule,在其中查找内容类型,然后对响应应用一些过滤器。在某些情况下,我不想应用这些过滤器之一,但直到稍后的 page_load 事件才确定。有没有办法去掉滤镜??
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 event later on. Is there any way to remove a filter??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
...我想答案是,不...
...I think the answer is, No...
这应该有效:
它删除了所有过滤器,而不仅仅是一个,但对我有用。
This should work:
It removes all filters, not just one, but worked for me.