473,406 Members | 2,404 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,406 software developers and data experts.

Device Identification Aganist the browser

Hi Knowledge Spices,
I have a remote server which will have different versions (.cab,.sis) of the same application. I would like to download the supported extention file for the Device.
I have a mobile web application which will download .cab file for pocket PC through InternetExplorer
now i would like to know that is it possible for me to identify the device aganist which my application running?
if so if it is nokia i will let the user to download .sis file or if it is PocketPC i will let him to download .cab...
Any one please help Hoe to identify the Device...

I am working with VS2005 and .net 2.0 with Mobile web Application in C#.net
Advance thanks
May 29 '07 #1
2 1455
jhardman
3,406 Expert 2GB
Try
Expand|Select|Wrap|Line Numbers
  1. if instr(server("http_user_agent"), "Nokia") then
  2.    'device is nokia, handle appropriately
  3. elseif instr(Server("http_user_agent"), "PocketPC") then
  4.    'etc
  5. end if
This is how I would detect using asp. I'm not sure what the user agent will be in those cases, but it should be different.

I think most people detect with javascript, though, but I don't know why that would be the default.

Let me know if this helps.

Jared
May 29 '07 #2
jhardman
3,406 Expert 2GB
Oh, sorry. You said you were writing in c# and I gave you a vb answer. It should be something similar to this, though. Or ask in the .net forum.

Jared
May 29 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Hasan Ceylan | last post by:
Hi Everyone, Recently we have started to have performance problems on our server which has the following configuration: Win 2K IIS 5 php The traffic to our web site is on normal time 300...
2
by: d.schulz81 | last post by:
Hi all, We have about 10 different domains that are linked very closely and we want to identify and track every single user that surfs our websites. Later we want to analyse user paths and find...
0
by: Andy Warr | last post by:
Hello... I am developing an application using C# and ASP.NET. I wish my code to detect the device the user is using (OS, Browser) and if a mobile device is being used (PDA, Phone, etc..) it...
23
by: Roel Melchers | last post by:
My ACCESS-database contains all members of my association. When the members attend to a meeting I want to record their presence. When they enter they identify themselves by putting their finger...
3
by: mrbog | last post by:
Hello, I wrote an Asynchronous Pluggable Protocol namespace handler. When my Start() method gets called, I would like to know which browser window is calling it. So, I want to be able to get the...
2
by: suresh | last post by:
Hello to you all In my .Net application, I want to import document images (Tiff images), having same format, in a batch, For e.g. I have a document folder containing mixed images like...
2
by: standard240 | last post by:
Hi, I was wondering if anyone could tell me how exactly a website knows if you are visiting from your computer (ie/firefox) or from your cell phone browser??? For example, if I go to...
0
by: =?Utf-8?B?SnVzdGluIFJvYmVydHM=?= | last post by:
Hi I am developing a mobile web VB asp.net application in VS 2005. The forms are mobile web forms. I have a mobile web configuration page (web.config). In one of my forms I have a DeviceSpecific...
4
by: =?Utf-8?B?TmFkYXYgUG9wcGxld2VsbA==?= | last post by:
Hi everybody, I've got an ASP.NET 1.1 application and I need to add to it new Browser Capabilities information for 3 new cellular phones. I used to use...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.