Last post Nov 09, 2010 02:57 AM by matrixvibe
Nov 09, 2010 02:57 AM|matrixvibe|LINK
With growing number of mobile devices today it is very important for mobile web development that we detect the right mobile device and redirect user to the mobile layout content automatically to have good user experience.
http://51degrees.codeplex.com 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.
You can very easily perform auto mobile redirection without updating any of your existing ASP.NET website pages by just updating your web.config as shown in sample below.
In this example MobileDeviceManufacturer is used as the property. Both WURFL capabilities and ASP.NET Browser properties can be used with the property attribute. If none of the locations match and the requesting device is a mobile device then the mobileHomePageUrl
will be used
<add property="MobileDeviceManufacturer" matchExpression="Apple"/>
<add property="MobileDeviceManufacturer" matchExpression="RIM"/>
<add property="MobileDeviceManufacturer" matchExpression="Nokia"/>