Search code examples
asp.netmobilebrowser-detection

Mobile Browser emulator where Request.Browser.IsMobileDevice=True?


I'm currently testing an ASP.NET Web Application on the "Opera Mobile" emulator.

I've got the following code for testing purposes:

Response.Write(Request.Browser.IsMobileDevice)

This is returning False

Are there emulators which act exactly like a mobile browser, so that this would return True?

It would be a bit of a pain if I have to release the application each time so that I can access it on my actual mobile phone.


Solution

  • I don´t recommend you to use IsMobileDevice directly, because his db is not update. Microsoft launched mdbf, but now it´s abandoned.

    You could override it using WURFL or 51degrees. But if you don´t need browser capabilities and you only need to know if it´s mobile device then you can use this script.