Screeh Resolution

Discussion in 'ASP .Net' started by Toby Riley, Dec 2, 2003.

  1. Toby Riley

    Toby Riley Guest

    Hi,

    Can anyone tell how to get the screen resolution / width from any browser
    into asp.net.

    Thanks

    Toby
     
    Toby Riley, Dec 2, 2003
    #1
    1. Advertising

  2. Toby Riley

    Teemu Keiski Guest

    Use JavaScript to get it:

    screen.width
    screen.height.

    Then store it to hidden form field and cause a postback (or use other
    mechanism) to send them to the server. Server can then read them from the
    posted hidden fields.

    --
    Teemu Keiski
    MCP, Microsoft MVP (ASP.NET), AspInsiders member
    ASP.NET Forum Moderator, AspAlliance Columnist


    "Toby Riley" <> wrote in message
    news:...
    > Hi,
    >
    > Can anyone tell how to get the screen resolution / width from any browser
    > into asp.net.
    >
    > Thanks
    >
    > Toby
    >
    >
     
    Teemu Keiski, Dec 2, 2003
    #2
    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. Replies:
    3
    Views:
    2,118
  2. Andrew FPGA
    Replies:
    0
    Views:
    1,009
    Andrew FPGA
    Sep 26, 2005
  3. kitcha
    Replies:
    3
    Views:
    3,008
    Charles Bailey
    Nov 24, 2005
  4. Jenny

    Screen resolution

    Jenny, Aug 26, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    382
    Ken Schaefer
    Aug 26, 2003
  5. Eph0nk

    Error: Overload resolution failed

    Eph0nk, Oct 23, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    1,887
    Eph0nk
    Oct 23, 2003
Loading...

Share This Page