C# .NET Checking if browser is mobile - what is the most reliable way?

后端 未结 5 1660
谎友^
谎友^ 2021-01-14 19:03

I know I can use Request.Browser.IsMobileDevice.

But does anyone know how it works, and if it is reliable and up to date?

Thanks!

5条回答
  •  逝去的感伤
    2021-01-14 19:14

    If you're going to use the latest and greatest features available you should take a look into the IE9 demo for Media Queries to make your decision by checking the current screen resolution.

提交回复
热议问题