运行Web Asp.Net时如何识别设备 [英] How Do I Discrimination Device When Run Web Asp.Net
本文介绍了运行Web Asp.Net时如何识别设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我用
Hi every body,
I use
Request.Browser.IsMobileDevice
但它不适用于平板电脑(例如:nexus 7)。
请指导我其他的,谢谢!
but it not working on tablet (ex: nexus 7).
Please guide me how other, thank you!
推荐答案
好吧,我从未尝试过这个,但快速的谷歌搜索提供了一些有用的结果。
请求。 Browser.IsMobileDevice = false for Android,为什么? [ ^ ]
ASP.NET移动侦测 [ ^ ]
用户代理字符串解释 [ ^ ]
特殊情况; Request.Browser.IsMobile未将Android手机检测为手机; [ ^ ]
Well, i have never tried this but quick google search provided some useful results.
Request.Browser.IsMobileDevice = false for Android, why?[^]
ASP.NET Mobile Detection[^]
User Agent String explained [^]
special case; Android phones were not being detected as mobiles by Request.Browser.IsMobile;[^]
这篇关于运行Web Asp.Net时如何识别设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文