打开兼容性模式时,如何确定正确的浏览器版本

Mat*_*att 6 .net c# asp.net internet-explorer

我需要确定用户使用的浏览器版本,但默认情况下会为整个公司启用兼容模式.

在服务器端脚本中,如何确定真正的浏览器版本?

谢谢

更新 我的页面正确显示使用document.documentMode的IE版本,但我无法弄清楚如何将其传递到服务器端,以便我可以使用它.

Mat*_*att 2

javascript 中的 document.documentMode 是解决方案。

<script>
alert(document.documentMode);
<script>
Run Code Online (Sandbox Code Playgroud)