473,698 Members | 2,180 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Browser levels, PDAs and browser sniffing

Hi.

I have a need for users to access my ASP.NET pages from PDAs. I notice that
you can deploy to different browser levels, eg IE5, HTML3.2, etc. So
deploying the forms to HTML3.2 will work for PDAs.

Is there much else to it (other than testing to make sure it looks and works
ok)?

Also, how can I set it up to 'browser sniff' and serve up HTML 3.2 pages for
PDAs and (say) HTML 4 pages otherwise?

Thanks!

Lauchlan M

Nov 17 '05 #1
2 1214
Great but how would one do it on a hosted site. How many web hosting
companies give you access to the machine.config?
Do any? I find many of the "solutions" to problems listed in this newsgroup
are great if you are using an intranet or if you are in development using
your own iis localhost but very often the solutions fall short when you
deploy to a web host that you do not have control over.

"Ken Cox [Microsoft MVP]" <BA************ @sympatico.ca> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
The detection of the browser is handled in the machine.config file located in:
C:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ CONFIG

You'll find a section like this where you can, presumably, customize .Net to detect your PDA and respond. Can't say more than that 'cause I've never messed with it.

<browserCaps>
<result type="System.We b.Mobile.Mobile Capabilities, System.Web.Mobi le,
Version=1.0.500 0.0, Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"/>
<use var="HTTP_USER_ AGENT"/>

Ken
--
Microsoft MVPs have a question for *you*: Are you patched against the Worm? http://www.microsoft.com/security/se...s/ms03-026.asp

"Lauchlan M" <LM********@Hot mail.com> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. .
Hi.

I have a need for users to access my ASP.NET pages from PDAs. I notice that you can deploy to different browser levels, eg IE5, HTML3.2, etc. So
deploying the forms to HTML3.2 will work for PDAs.

Is there much else to it (other than testing to make sure it looks and works ok)?

Also, how can I set it up to 'browser sniff' and serve up HTML 3.2 pages for PDAs and (say) HTML 4 pages otherwise?

Thanks!

Lauchlan M

Nov 17 '05 #2
"Lauchlan M" <LM********@Hot mail.com> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. .
Hi.

I have a need for users to access my ASP.NET pages from PDAs. I notice that you can deploy to different browser levels, eg IE5, HTML3.2, etc. So
deploying the forms to HTML3.2 will work for PDAs.


Have you considered using the Mobile Internet Toolkit? This allows you to
use controls which adapt to PDAs, cell phones, etc. It is now part of Visual
Studio 2003, but is an add-in for 2002.
--
John Saunders
Internet Engineer
jo***********@s urfcontrol.com
Nov 17 '05 #3

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

Similar topics

15
8336
by: David | last post by:
On a page optimised for IE, I'd like to check if the browser type is other than IE, so I can direct them to another page. How can I modify the code below to redirect to indextext.asp if they aren't using IE? I've tried changing the = for <>, but get a syntax error. Thanks USER_AGENT = Request.ServerVariables("HTTP_USER_AGENT") IS_IE = InStr(USER_AGENT,"MSIE")
13
9442
by: Kai Grossjohann | last post by:
It seems that Ctrl-N in Mozilla opens a new empty browser window. That's fine, I don't need to do anything about it. But Ctrl-N in IE appears to clone the current window. Is there a way to intercept the key so that I can do stuff on the server side to make the new window behave correctly? (We have a JSP-based webapp which stores state in the session. Now if two windows access (and modify!) the same session, then madness will result....
23
2385
by: Mark Tranchant | last post by:
A new project: http://step-by-step.org.uk/ Don't worry about the links yet, the content hasn't been written. I'm just interested in the introduction screen, which is my first attempt at an absolutely-positioned layout. I'd like to know whether this works well in all browsers. It *should* look like this in a modern, standards-supporting browser:
16
2866
by: Java script Dude | last post by:
To all Mozilla JS Guru's (IE dudes welcome), I have spent the last three years developing complex DHTML applications that must work in IE 5.5sp2+ but I use Mozilla 1.3+** to do all my development. I have build some cross browser debuggers so my users can send me verbose debug dumps. I have some success but have come to a roadblock with the basic underlying JavaScript models. The only way to get a complete stack in IE is to use the...
11
2182
by: James | last post by:
I wasn't sure where to post this so I'm sorry if this is the wrong place. But I would like to know what some of the differences are between client-side and server-side browser sniffing. I'm aware the client-side stops certain errors being transmitted so saves on bandwidth and server-side my catch errors that are missed on the client-side. Anything else would be great. Thanks.
16
2347
by: petermichaux | last post by:
Hi, Does anyone have a a cross-browser setOpacity function that does not use browser sniffing? I looked at the Yahoo! UI function and it detects IE by looking for window.ActiveXObject. I also looked at Scriptaculous and it uses navigator.userAgent. Thanks, Peter
22
2289
by: petermichaux | last post by:
Hi, I would like to display a message to Internet Explorer clients to encorage them to get Firefox. Yes they may like Internet Explorer but it is my site :) http://www.explorerdestroyer.com/ uses navigator.userAgent If ((ua.indexOf('msie') != -1) && (ua.indexOf('opera') == -1) &&
1
1333
by: RobG | last post by:
Browser sniffing is generally considered a very bad idea, developers are usually told that feature detection is the way to go. It seems a real pitty then that the developers of new platforms are actually encouraging browser sniffing by releasing "detection" scripts: <URL: http://webkit.org/blog/119/webkit-detect-script-updated-for-iphone-and-ipod-touch/ Cest la vie.
10
3254
by: Conrad Lender | last post by:
In a recent thread in this group, I said that in some cases object detection and feature tests weren't sufficient in the development of cross-browser applications, and that there were situations where you could improve the application by detecting the browser vendor/version. Some of the posters here disagreed. Since then, I've had to deal with a few of these cases; some of them could be rewritten to use object detection, and some couldn't....
0
8601
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9156
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9021
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6518
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4365
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3043
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2327
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1998
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.