I am trying to get the screen resolution and screendepth of users screens uisng .net c# as writing directly to SQL database with the traffic information collected. Using Javascript to obtain information was ruled out as too hard to get it back to .net code to write values away.
I am using Request.Browser.ScreenPixe
lsWidth to get the width, Request.Browser.ScreenPixe
lsHeight to get the height and Request.Browser.ScreenBitD
epth to get the screendepth. The problem is that they appear to be incorrect in my browser IE6 They report my resolution as 640*480 and the depth to be 8!!! I am running at 1280*1024 and 32 bit depth.
Any ideas on a fix please?
Start Free Trial