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

后端 未结 5 1702
谎友^
谎友^ 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:26

    You need to regularly update BrowserCaps to keep it up-to-date.

    http://www.asp.net/mobile/device-updates/instructions/

    Note: (Aug 25 2012) apparently the page has been removed.

提交回复
热议问题