Detect Mobile, Handheld

Discussion in 'ASP .Net Mobile' started by jimmy.andersson@nbit.sigma.se, Aug 29, 2006.

  1. Guest

    Is there any easy way to detect if the device is a Mobile Phone,
    Handheld, Pda etc when the user enter a site?

    For example, if the user hav a Mobile Phone I want to redirect the user
    to http://mobile.xxx.com but if the user have computer i want them to
    stay on the adress http://www.xxx.com

    Would be very thankful if anyone can help me!
    , Aug 29, 2006
    #1
    1. Advertising

  2. jhagerty Guest

    Just check the server variable USER_AGENT

    <> wrote in message
    news:...
    > Is there any easy way to detect if the device is a Mobile Phone,
    > Handheld, Pda etc when the user enter a site?
    >
    > For example, if the user hav a Mobile Phone I want to redirect the user
    > to http://mobile.xxx.com but if the user have computer i want them to
    > stay on the adress http://www.xxx.com
    >
    > Would be very thankful if anyone can help me!
    >
    jhagerty, Aug 30, 2006
    #2
    1. Advertising

  3. Guest

    I have thought of that, but there is so many browsers, os etc, and it
    is a hard job to keep that list updated.

    Any other suggestions?


    jhagerty skrev:

    > Just check the server variable USER_AGENT
    >
    > <> wrote in message
    > news:...
    > > Is there any easy way to detect if the device is a Mobile Phone,
    > > Handheld, Pda etc when the user enter a site?
    > >
    > > For example, if the user hav a Mobile Phone I want to redirect the user
    > > to http://mobile.xxx.com but if the user have computer i want them to
    > > stay on the adress http://www.xxx.com
    > >
    > > Would be very thankful if anyone can help me!
    > >
    , Aug 30, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Neil Benn
    Replies:
    0
    Views:
    353
    Neil Benn
    Sep 7, 2004
  2. mickyblu
    Replies:
    0
    Views:
    458
    mickyblu
    Jul 6, 2006
  3. Jared

    Python on a handheld?

    Jared, Jul 30, 2004, in forum: Python
    Replies:
    0
    Views:
    268
    Jared
    Jul 30, 2004
  4. Michael Sparks
    Replies:
    4
    Views:
    459
    =?iso-8859-1?q?J=E9r=F4me_Laheurte?=
    Dec 17, 2005
  5. chen selina
    Replies:
    0
    Views:
    1,284
    chen selina
    Jul 13, 2010
Loading...

Share This Page