473,545 Members | 937 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Detecting PPC 2002 vs. 2003 in ASP

I can't seem to find at MS how to detect the 2002 OS vs. 2003 OS for web
applications using ASP. This is the only page I could find
(http://msdn.microsoft.com/library/en...ng_web_sites_f
or_internet_exp lorer_for_pocke t_pc_cheo.asp) and it only tells how to detect
2000 vs. 2002 (and much of the graphic is cutoff on the right).

It has the code below but it doesn't tell me how to distinguish between 2002
and 2003 in ASP:

if (InStr(Request. ServerVariables ("HTTP_USER_AGE NT"), "PPC")) then
' add Pocket PC 2003 specific code.
else
' add Pocket PC 2002 specific code.
else
' add Pocket PC 2000 specific code.
end if

And then it has client-side code like this:

// Check for Pocket PC
var isPPC = strNav.indexOf( "240x320");
if(isPPC > -1) {
var is2002 = strNav.indexOf( "PPC");
if(is2003 > -1) {
// add Pocket PC 2003 specific code.
}
else
if(is2002 > -1) {
// add Pocket PC 2002 specific code.
}

but I don't see where the "is2003" variable comes from????

Also, the BROWCAP.INI file that is supposed to contain the new browser info
was a 2000 version. Is there an updated file for ASP developers somewhere?

Thanks for any help.

Jul 19 '05 #1
2 3021
The code has nested if statements.
'Check for Pocket PC
if (InStr(Request. ServerVariables ("HTTP_UA_OS "), "POCKET PC")) then
if (InStr(Request. ServerVariables ("HTTP_USER_AGE NT"), "PPC")) then
' add Pocket PC 2003 specific code.
else
' add Pocket PC 2002 specific code.
else
' add Pocket PC 2000 specific code.
end if
else
' add code for other platforms.
end if

so if the server variabele HTTP_UA_OS contains POCKET PC then you know it's
either 2002 or 2003
if the server variable HTTP_USER_AGENT contains PPC (and the above is true)
then it's 2003 otherwise it's 2002

The other part of the code you are referring to is client-side.
"Don Miller" <no****@nospam. com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
I can't seem to find at MS how to detect the 2002 OS vs. 2003 OS for web
applications using ASP. This is the only page I could find
(http://msdn.microsoft.com/library/en...ng_web_sites_f or_internet_exp lorer_for_pocke t_pc_cheo.asp) and it only tells how to detect 2000 vs. 2002 (and much of the graphic is cutoff on the right).

It has the code below but it doesn't tell me how to distinguish between 2002 and 2003 in ASP:

if (InStr(Request. ServerVariables ("HTTP_USER_AGE NT"), "PPC")) then
' add Pocket PC 2003 specific code.
else
' add Pocket PC 2002 specific code.
else
' add Pocket PC 2000 specific code.
end if

And then it has client-side code like this:

// Check for Pocket PC
var isPPC = strNav.indexOf( "240x320");
if(isPPC > -1) {
var is2002 = strNav.indexOf( "PPC");
if(is2003 > -1) {
// add Pocket PC 2003 specific code.
}
else
if(is2002 > -1) {
// add Pocket PC 2002 specific code.
}

but I don't see where the "is2003" variable comes from????

Also, the BROWCAP.INI file that is supposed to contain the new browser info was a 2000 version. Is there an updated file for ASP developers somewhere?

Thanks for any help.

Jul 19 '05 #2
Doh!

"Tom B" <sh*****@NOSPAM hotmail.com> wrote in message
news:#X******** ******@TK2MSFTN GP12.phx.gbl...
The code has nested if statements.
'Check for Pocket PC
if (InStr(Request. ServerVariables ("HTTP_UA_OS "), "POCKET PC")) then
if (InStr(Request. ServerVariables ("HTTP_USER_AGE NT"), "PPC")) then
' add Pocket PC 2003 specific code.
else
' add Pocket PC 2002 specific code.
else
' add Pocket PC 2000 specific code.
end if
else
' add code for other platforms.
end if

so if the server variabele HTTP_UA_OS contains POCKET PC then you know it's either 2002 or 2003
if the server variable HTTP_USER_AGENT contains PPC (and the above is true) then it's 2003 otherwise it's 2002

The other part of the code you are referring to is client-side.
"Don Miller" <no****@nospam. com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
I can't seem to find at MS how to detect the 2002 OS vs. 2003 OS for web
applications using ASP. This is the only page I could find

(http://msdn.microsoft.com/library/en...ng_web_sites_f
or_internet_exp lorer_for_pocke t_pc_cheo.asp) and it only tells how to

detect
2000 vs. 2002 (and much of the graphic is cutoff on the right).

It has the code below but it doesn't tell me how to distinguish between

2002
and 2003 in ASP:

if (InStr(Request. ServerVariables ("HTTP_USER_AGE NT"), "PPC")) then
' add Pocket PC 2003 specific code.
else
' add Pocket PC 2002 specific code.
else
' add Pocket PC 2000 specific code.
end if

And then it has client-side code like this:

// Check for Pocket PC
var isPPC = strNav.indexOf( "240x320");
if(isPPC > -1) {
var is2002 = strNav.indexOf( "PPC");
if(is2003 > -1) {
// add Pocket PC 2003 specific code.
}
else
if(is2002 > -1) {
// add Pocket PC 2002 specific code.
}

but I don't see where the "is2003" variable comes from????

Also, the BROWCAP.INI file that is supposed to contain the new browser

info
was a 2000 version. Is there an updated file for ASP developers somewhere?
Thanks for any help.


Jul 19 '05 #3

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

Similar topics

3
1606
by: Larry Pits | last post by:
Hi All, Is there a backward compatability issue regarding to .Net 2002 and .Net 2003? I heard someone said that if you're developing in .Net 2003 and gave the entire project to someone who is developing using VS .Net 2002 and they can't open the solution file (.sln). Is there a solution to fix this problem. TIA
7
1890
by: Emil Frank | last post by:
Hi all, Via client side JavaScript I need to detect whether Outlook 2002 or 2003 is installed on a client machine. How can I do that using JavaScript? Thanks, Emil
13
2622
by: Noesis Strategy | last post by:
When I ordered my new laptop, Sony didn't offer Access 2003 in its bundles. Recently, I have begun to design Access databases using an copy of Access 2002 from my previous laptop. It works fine, but I would like to have all the office apps on the same version. So I have a few questions: 1) Is the file format the same as 2002? Can 2002...
0
1543
by: Colin Chudyk | last post by:
Hi, Here is my situation. Can anyone provide insight? I have developed a database in Access 2002. I am planning to distribute it as a split MDE (front) / MDB (back) to be used by the Access runtime and also full-version. Some of the client workstations will have Access 2002 installed. Most of them will have the runtime installed. ...
7
3446
by: Wayne Aprato | last post by:
I have several Access 2003 mde databases. When I try to open them in Access 2002 I get the following error: "The Visual Basic for Applications project in the database is corrupt." Interestingly I can open the mdb files of the same 2003 databases in Access 2002 without problems. To my understanding the file formats of 2002 and 2003 are...
5
1157
by: Tom | last post by:
We currently have a rather large application that is in VB.NET 2002. We have just purchased licenses to the 2003/1.1 Framework version of Visual Studio. What kind of conversion, if any, will we need to do to move our application over to the 2003/1.1 version? We will be moving this application over to production within a couple of months, and I...
0
1473
by: Howard Kaikow | last post by:
I have a multiboot system. On one of the systems, I have Office 2002, VS .NET Pro 2002 and the Office 2002 PIA with .NET Framework 1.0. On another system, I have Office 2003, VS .NET Pro 2003 and the Office 2003 PIA with .NET Framework 1.1, as well as VSTO. Are there known problems using VS .NET Pro 2003 with Office 2002 and the Office...
4
1171
by: Jon S via DotNetMonster.com | last post by:
Hi all I've taught myself C# 2002 using VS.NET 2002. I've recently brought myself an ASP.NET 2003 book. I will work through this ASP.NET 2003 using VS.NET 2002 and C# 2002. I don't fully understand the differences between the VS. NET 2002 and VS.NET 2003. Will I restrict myself in any way learning ASP.NET 2003 but only using VS.NET...
52
9924
by: Neil | last post by:
We are running an Access 2000 MDB with a SQL 7 back end. Our network guy is upgrading to Windows Server 2003 and wants to upgrade Office and SQL Server at the same time. We're moving to SQL Server 2005, and, since he already has licenses for Office Pro 2002, he wants to upgrade to that. I've been saying that we need to upgrade to Access...
0
7467
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7401
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7656
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7756
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5971
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5326
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3442
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1014
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
703
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.