I know I can use Request.Browser.IsMobileDevice.
Request.Browser.IsMobileDevice
But does anyone know how it works, and if it is reliable and up to date?
Thanks!
This question needed some 2018 love. Try this.
if(Request.Browser.IsMobileDevice){ // do something }
You shouldn't need any @using statements for this, but if you did Intellisense would you tell and help you add it with a click.
@using