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!
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!
You are looking for this. Put it in a folder in the App_Browsers
folder. http://mdbf.codeplex.com/
Instead of MDBF [This project is no longer supported and will be removed on October 29, 2010]
Use http://51degrees.codeplex.com/. It is an ASP.NET open source module which detects mobile devices and provides auto redirection to mobile optimized pages when request is coming from mobile device. It makes use of WURFL mobile device database. For redirection there is no need to modify existing ASP.NET web application pages.
Apart from this it also gives upto-date mobile capability information like manufacturer, model, screen height & width, image formats supported and MANY MORE...... which helps to customize pages for best mobile output.
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.
Regarding Mobile Device Browser File:
Due to the organizational restructuring of the team that developed and supported the Mobile Device Browser file, we will no longer have the resources to support and update this CodePlex project.
The team will be providing two more releases – one on the 27th July 2010 and the final release on the 24th August 2010.