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

Device Identification Aganist the browser

P: 1
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
Share this Question
Share on Google+
2 Replies


jhardman
Expert 2.5K+
P: 3,405
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
Expert 2.5K+
P: 3,405
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

Post your reply

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