By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,395 Members | 2,541 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,395 IT Pros & Developers. It's quick & easy.

Detecting PPC 2002 vs. 2003 in ASP

P: n/a
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_explorer_for_pocket_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_AGENT"), "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
Share this Question
Share on Google+
2 Replies


P: n/a
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_AGENT"), "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****************@TK2MSFTNGP10.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_explorer_for_pocket_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_AGENT"), "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

P: n/a
Doh!

"Tom B" <sh*****@NOSPAMhotmail.com> wrote in message
news:#X**************@TK2MSFTNGP12.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_AGENT"), "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****************@TK2MSFTNGP10.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_explorer_for_pocket_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_AGENT"), "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 discussion thread is closed

Replies have been disabled for this discussion.