I'm trying to detect from server-side in an MVC4 Website the Internet Explorer 9, but Request.Browser.Browser returns Mozilla and Request.Browser.MajorVersion returns 0.
Any idea how can I achieve this?
Thanks.
I'm trying to detect from server-side in an MVC4 Website the Internet Explorer 9, but Request.Browser.Browser returns Mozilla and Request.Browser.MajorVersion returns 0.
Any idea how can I achieve this?
Thanks.
尝试这个:
if (Request.UserAgent.Contains("MSIE 9.0"))
{
}
Request.Browser
您在此对象上有各种可用的浏览器数据,请参阅此浏览器功能 MSDN 页面了解更多详细信息。