Umbraco - 手机检测和重定向

发布于 2024-08-08 02:20:14 字数 100 浏览 1 评论 0原文

我正在 umbraco 网站中寻找一种方法来检测用户是否拥有移动设备,然后将用户重定向到移动优化页面。如果用户愿意,我还需要能够强制使用完整站点。

有人有这方面的经验吗?

I am looking for a way in a umbraco site to detect if the user has a mobile device, then redirect the user to a mobile optimized page. I will also need the user to be able to force the full site if they wish.

Does anyone have any experience with this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

染墨丶若流云 2024-08-15 02:20:14

对于在 ASP.NET 中检测移动浏览器,以下链接将对您有所帮助。我确实实现了这个并且对我来说效果很好。

http://www.codeproject.com/KB/aspnet/mobiledetect。 aspx?msg=3159071

For Detecting a mobile browser in ASP.NET following link will be helpful for you. I did implemented this and works fine for me.

http://www.codeproject.com/KB/aspnet/mobiledetect.aspx?msg=3159071

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文