Smart Phone question

Discussion in 'ASP .Net' started by Dave, Jul 22, 2010.

  1. Dave

    Dave Guest

    If I have a forms authentication web page, how can I tell if a visitor
    is coming from a Desktop or a smart phone? I'd like to redirect to a
    different page after logging in if coming from a smart phone.

    Thanks
    Dave, Jul 22, 2010
    #1
    1. Advertising

  2. Dave

    Jason Keats Guest

    Dave wrote:
    > If I have a forms authentication web page, how can I tell if a visitor
    > is coming from a Desktop or a smart phone? I'd like to redirect to a
    > different page after logging in if coming from a smart phone.


    Use JavaScript to detect the client's screen resolution - that is,
    return screen.width and screen.height.
    Jason Keats, Jul 23, 2010
    #2
    1. Advertising

  3. Dave

    Cubaman Guest

    On Jul 22, 7:29 pm, Dave <> wrote:
    > If I have a forms authentication web page, how can I tell if a visitor
    > is coming from a Desktop or a smart phone?  I'd like to redirect to a
    > different page after logging in if coming from a smart phone.
    >
    > Thanks


    Use Page.Request.UserAgent property to determine the web broowser.
    Cubaman, Jul 26, 2010
    #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. Zahoor
    Replies:
    1
    Views:
    791
    Darryl L. Pierce
    Nov 15, 2003
  2. Farooq
    Replies:
    0
    Views:
    300
    Farooq
    Feb 1, 2008
  3. Farooq
    Replies:
    0
    Views:
    232
    Farooq
    Feb 1, 2008
  4. chen selina
    Replies:
    0
    Views:
    870
    chen selina
    Jul 7, 2010
  5. Rene Ivon Shamberger

    convert Phone Letters to Phone numbers

    Rene Ivon Shamberger, Dec 4, 2012, in forum: C++
    Replies:
    5
    Views:
    362
Loading...

Share This Page