Screen resolution

  • Thread starter Thread starter Bart Schelkens
  • Start date Start date
B

Bart Schelkens

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
 
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. :)
 
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.
 
Back
Top