Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 20th, 2005, 04:46 AM
Registered User
 
Join Date: Feb 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Detecting Pocket PC device on Browser

Can anyone tell me how to detect whether a web page is being accessed by a Pocket PC device?

 
Old May 21st, 2005, 10:08 PM
Registered User
 
Join Date: May 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

<% if (instr(request.servervariables("HTTP_USER_AGENT"), "Windows CE")) then
    response.redirect "pocketpc.asp"
   end if
%>


That should work.

 
Old May 25th, 2005, 07:57 AM
Registered User
 
Join Date: Feb 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks, I will try that.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Pocket PC emulator 2003 dinesherandika ASP.NET 2.0 Professional 1 December 7th, 2007 03:10 AM
pocket pc programming angelboy General .NET 1 April 23rd, 2007 07:28 AM
Setfocus on Pocket PC rtr1900 Classic ASP Basics 0 October 2nd, 2006 02:29 AM
vb.net smart device pocket pc and xml BlueIce6 VB.NET 0 February 16th, 2005 05:33 PM
Compact Framework on Pocket PC egem VS.NET 2002/2003 2 February 3rd, 2004 03:22 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.