检测到移动设备为非移动设备 [英] Mobile device is detected as non mobile device
问题描述
我在asp.net项目中包含了一个移动Web表单,我认为可以/应该只为我的移动用户看到它,但是我意识到也可以从任何浏览器中看到它,但我没有看到出现问题的原因是我可以使用HttpBrowserCapabilities.IsMobileDevice = true进行访问差异并将其转移到适当的aspx页面,但是结果是,当我从移动设备访问Web表单时,它被标识为IsMobileDevice = false并将我发送到另一页面
I've included a mobile web form in my asp.net project, I thought that it could/should be seen just for my mobile users but I realize that it can also be seen from any browser, I don't see problem there cause I could diff the access using HttpBrowserCapabilities.IsMobileDevice=true and transferring to the appropiate aspx page, but it results that when I access to the web form from my mobile device it is identified as IsMobileDevice = false and sends me to another page.
怎么可能呢?
该移动设备运行Pocket PC 2003.
The mobile device runs Pocket PC 2003.
推荐答案
由于UserAgent混乱或正在使用新的浏览器,因此无法识别某些内容.例如Opera Mobile 9.5.要解决此问题,您需要创建专门用于定义此内容的浏览器(* .browser)文件.我必须为Google发送的基于Mozilla的新UserAgent所做的事情.
Some are not recognized, because the UserAgent has been messed with or a new browser is being used. Such as Opera Mobile 9.5. To fix this you need to create a Browser (*.browser) file specifically for defining this. I had to do it for the new Mozilla based UserAgent that is being sent from Google.
这篇关于检测到移动设备为非移动设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!