Screen resolution

Discussion in 'ASP .Net' started by Bart Schelkens, Aug 6, 2004.

  1. Hi,

    is there a way in asp.net to find out what the screen-resolution is that the
    viewer is using to view your site?

    Thx
     
    Bart Schelkens, Aug 6, 2004
    #1
    1. Advertisements

  2. Not on the initial request (I don't think). What you can try is to use
    JavaScript to erad the screen resolution via client-side script, enter that
    information into a hidden input element, and have the same JS function submit
    the form back with the resolution on the querystring... something like that.

    Now, there may be a better answer out there (ahem), but I'm pre-coffee here,
    cut me some slack. :)
     
    =?Utf-8?B?R3JlZyBIdXJsbWFu?=, Aug 6, 2004
    #2
    1. Advertisements

  3. On the client-side using JavaScript: screen.width and screen.height.

    --
    HTH,
    Kevin Spencer
    ..Net Developer
    Microsoft MVP
    Big things are made up
    of lots of little things.
     
    Kevin Spencer, Aug 6, 2004
    #3
    1. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.