相关疑难解决方法(0)

检测Internet Explorer浏览器版本问题

我在布局中的MVC3应用程序中获得了Getaway:

@if ((Request.Browser.Browser == "IE") && ((Request.Browser.MajorVersion == 7)))
{
//show some content
}
else
{
//show another content 
}
Run Code Online (Sandbox Code Playgroud)

我有很多用户抱怨(用户使用Internet Explorer 8).他们从我的应用程序中看到Internet Explorer 7内容.我检测Internet Explorer 7版本的方式有什么问题?如何在我的应用程序中确保100%用户拥有Internet Explorer 7版本?可能这是特定的操作系统问题?

asp.net asp.net-mvc-3

4
推荐指数
1
解决办法
2万
查看次数

标签 统计

asp.net ×1

asp.net-mvc-3 ×1