Advertisement

02.25.2008 at 07:58AM PST, ID: 23190560
[x]
Attachment Details

Incorrect value from Request.Browser.ScreenPixelsHeight

Asked by stephenwilde in Visual Studio, Microsoft Visual C#.Net, .Net Editors & IDEs

Tags: ,

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.ScreenPixelsWidth to get the width, Request.Browser.ScreenPixelsHeight to get the height and Request.Browser.ScreenBitDepth 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
[+][-]03.19.2008 at 03:30PM PDT, ID: 21166558

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Studio, Microsoft Visual C#.Net, .Net Editors & IDEs
Tags: .net c#, IE 6
Sign Up Now!
Solution Provided By: ShazbotOK
Participating Experts: 1
Solution Grade: A
 
 
[+][-]06.05.2008 at 05:39PM PDT, ID: 21725294

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]06.12.2008 at 08:05PM PDT, ID: 21775571

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628