Request.Browser.Platform 未返回 iPad、OSX 或 Windows7
我正在研究一些高级浏览器检测,并且我已从 CodePlex 下载了 MDBF 浏览器文件。
不幸的是,我的 Request.Browser.Platform 以及其他一些东西在我的 iPad Mac OSX (Snow Leopard) 和 Windows7 上都返回“未知”
有谁知道有一个很好的高级 .browser 文件可以做同样的事情MDBF 对移动设备的作用是非移动设备吗?
I'm working on some advanced browser detection, and I've downloaded the MDBF browser file from CodePlex.
Unfortunately my Request.Browser.Platform, along with a few other things is returning "Unknown" on both my iPad Mac OSX (Snow Leopard) and on Windows7
Does anyone know of a good advanced .browser file out there that does the same thing for non mobile devices as the MDBF does for mobile devices?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我已经使用应用程序的 App_Browsers 文件夹中的以下文件解决了我的特定问题(检测 iPad):
然后在我测试的代码中:
I've solved my particular issue (detecting iPad) with the following file in my application's
App_Browsers
folder:Then in the code I test:
请改用Request.UserAgent。
注意 其中还包含“移动”一词:
Apple 关于为 iPad 准备内容的信息:
https://developer.apple.com/library/content/技术说明/tn2010/tn2262/_index.html
Use
Request.UserAgent
instead.Beware that it includes the word
Mobile
as well:From Apple on preparing content for iPad:
https://developer.apple.com/library/content/technotes/tn2010/tn2262/_index.html