How do I detect a mobile phone browser?

Discussion in 'ASP.NET / ASP.NET Core' started by gidmeister, Jan 16, 2012.

  1. I'd like to be able to detect a mobile phone from my pages, and redirect if the user is on a mobile phone. I asked this on MSDN, and they recommended a free product but it requires installation of an additional module on the shared server I have from discountasp. This is not an option, so does anyone know of a simple function that can be used?
    Thanks,
    Gideon
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    what modules are you referring to?
     
  3. Can't you check the useragent value?
     

Share This Page