locked
Proper rendering on newer Blackberries RRS feed

  • Question

  • User-1162827054 posted

    I've got a series of pages that I built with the original 1.X MMIT, and I test if the requesting device is a genuine mobile device by evaluating Request.Browser.IsMobileDevice, and doing a simple Response.Redirect to desktop or mobile formatted content, depending on the device.  This works great most of the time, but Blackberries always get seen as desktop devices and improperly show those pages.

    Is there some user-agent or other profile I've got to specify to test against and display mobile content on Blackberries?  Thanks!


    Monday, March 5, 2007 4:00 AM

Answers

  • User907266268 posted
    You can add the device to the browserCaps if you are using ASP.NET 1.x, or create a browser file if you are using ASP.NET 2.0 with the capabilities defined.  You can get the capabilities by running the device through the Device Profiler or checking the WURFL list.
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, March 31, 2007 3:57 PM

All replies

  • User-1412709331 posted

    I use the following code to redirect the user to a desktop page or a Blackberry page.

    Dim httpAccept As String 'determine device, mobile or desktop

    httpAccept = LCase(Request.ServerVariables("HTTP_ACCEPT"))

    If InStr(httpAccept, "wap") Then

    Session("Device") = "Mobile"

    Else

    Session("Device") = "Desktop"

    End If

    Hope it helps. 

     

    Thursday, March 29, 2007 12:56 PM
  • User907266268 posted
    You can add the device to the browserCaps if you are using ASP.NET 1.x, or create a browser file if you are using ASP.NET 2.0 with the capabilities defined.  You can get the capabilities by running the device through the Device Profiler or checking the WURFL list.
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, March 31, 2007 3:57 PM
  • User-1162827054 posted
    Thanks guys! I'll give it a go.
    Sunday, April 1, 2007 1:27 AM