473,385 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Identify Palm or Blackberry

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
Oct 15 '06 #1
2 3876
have you read this, someone done quite a decent investigation into detecting
blackberries
--
--
Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
"William LaMartin" <la******@tampabay.rr.comwrote in message
news:u6**************@TK2MSFTNGP02.phx.gbl...
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

Oct 15 '06 #2
and the link might help :)

http://www.123aspx.com/redir.aspx?res=34655

--
--
Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
"John Timney (MVP)" <x_****@timney.eclipse.co.ukwrote in message
news:KM******************************@eclipse.net. uk...
have you read this, someone done quite a decent investigation into
detecting blackberries
--
--
Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
"William LaMartin" <la******@tampabay.rr.comwrote in message
news:u6**************@TK2MSFTNGP02.phx.gbl...
>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


Oct 15 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Nick | last post by:
I use right now Borland Delphi and VB 6. But soon going to VB.net does anyone know of any components and or tools to build apps for the Palm OS Thanks Nick Smith Beaverton, or
4
by: djanvk | last post by:
QUick question: Is it possible to create a palm os program to use on a PDA with python? THanks
1
by: Łukasz | last post by:
Does anybody used BlackBerry Enterprise Server? Windows Server 2003 Enterprise Exchange Server 2003 Enterprise + SP1 SQL Server 2000 + SP4 Problem: Everything is instaled properly (I hope...
1
by: Chumley Walrus | last post by:
I need to write some scripts that takes dynamic sports scores from an aspx page (via sql) onto palm-pilots. What's the best place to look for WAP/WML resources that can do this. The device I will...
1
by: Chumley Walrus | last post by:
I want to use an emulator to test some mobilewebform stuff (via visual studio.net IDE) , but I can't find anything for the Blackberry 6210, or compatible . I would also need some resources on how...
1
by: John Cosmas | last post by:
Has anyone had the pleasure of developing ASP.NET applications of the BlackBerry? I just built a simple application, and it seems not generate incomplete HTML tags. For instance, when an <INPUT...
0
by: Bazza Formez | last post by:
Hi, Can anyone suggest a technical solution to this tricky business requirement.... I am developing an online ordering system using ASP.NET. (Orders are entered online from the web by...
2
HillComanchy
by: HillComanchy | last post by:
I have an old blackberry 8700c, I want to create a home screen icon that takes me directly to the SMS Inbox folder, or to a specific folder from my exchange mailbox, how do I do that? I found out...
0
by: abhamjee | last post by:
I have seen posts on how to identify a Blackberry device and this works well. However, has anyone tried to identify the user? The Blackberry server will know who is currently browsing but can this...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.