强制IE使用兼容模式特定页面

时间:2018-06-11 08:09:48

标签: c# asp.net user-controls

我使用以下标记(在web.config中)强制IE使用最新版本的兼容模式。

 <httpProtocol>
            <customHeaders>
                <add name="X-UA-Compatible" value="IE=edge" />
            </customHeaders>
        </httpProtocol>

现在我想强制我的解决方案只有一页使用IE7可比性模式。 那可能吗?

请注意:

我将<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />放在该页面中但不起作用。

1 个答案:

答案 0 :(得分:0)

其中一种方法是您可以使用HttpModule并专门为EndRequest Event ex中的请求网址处理您的业务

enter image description here

enter image description here

有关详细信息,请查看https://www.c-sharpcorner.com/UploadFile/63e78b/remove-unwanted-http-headers-in-Asp-Net/