views:

311

answers:

6

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!

+1  A: 

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

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

Hery
Request.Browser.IsMobileDevice is relied on BrowserCaps
Hery
That looks pretty out of date.
Daniel A. White
+1  A: 

You are looking for this. Put it in a folder in the App_Browsers folder. http://mdbf.codeplex.com/

Daniel A. White
Thanks Daniel. So all I need to do is create the folder /App_Browsers/Devices, put mobile.browser in there, and use Request.Browser.IsMobileDevice as usual and it will now be using the new definition (Feb 2010 which I downloaded). Is that right?
Yep. Thats all. Theres a ton of other caps there too.
Daniel A. White
A: 

And if you need some more advance and mature, then try WURFL.

fravelgue
A: 

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.

Amit Patel
A: 

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.

Oliver
+1  A: 

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.

Lucifer