Identify Palm or Blackberry

W

William LaMartin

Does anyone have a method of determining if a visitor to a web page is using
a Palm or Blackberry mobile device?

With the code below, I can easily identify a Window CE, Pocket PC or Window
Mobile device, but am having trouble with the Palm.

My problem is that for those individuals I know who use Palms to access the
Internet, their browser is called Blazer and it returns an operating system
of Win98 and a browser of IE--hardly anything that identifies the device as
a Palm or mobile. The IsMobileDevice below does not detect the Palm either.
My Blackberry tester has not yet responded to me whether he is redirected
properly or what sort of browser or OS information is produced.

Dim temp As String = LCase(Request.Browser.Platform)
If InStr(temp, "wince") > 0 Then 'WinCE
'send them to the appropriate page for mobile
Server.Transfer("ppcDefault.aspx")
Else
'send them to a normal page
End If

If Request.Browser("IsMobileDevice") = True Then
'send them to the appropriate page for mobile
Server.Transfer("ppcDefault.aspx")
Else
'send them to a normal page
End If
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top