Screen Width

K

Ken Cooper

Hi,

Is it possible to determine users screen width in ASP.NET?

I have tried Request.ServerVariables("HTTP_UA_PIXELS") but this returns
nothing.

I am being pointed in the direction of Request.Browser.GetConfigCapabilities
but don't know what configKey to use. Is this an unfinished and undocumented
feature in the framework or is there some real help available somewhere?

Some important design decisions need to made about our site but these depend
on the screen resolutions being used by our visitors. How common is 800x600
now??? Can we "harvest" this information without asking users to complete a
survey form?

Many Thanks,

Ken

k.a.cooper___[at]___shu.ac.uk
 
P

Patrice Scribe

You'll find some stats at :
http://www.w3schools.com/browsers/browsers_stats.asp

You could also collect this on your own web site using the client-side
screen object (and posting these values in hidden fields for example).

Of course, it should be used only to make decisions about the global design.
IMO it shoudn't be used as an attempt to dynamically adapt each page to the
current resolution (HTML does quite a nice job at this when working with
relative units).

Patrice
 
K

Ken Cooper

This is excellent Patrice, the stats save me doing the excercise.

Many Thanks,

Ken


Patrice Scribe said:
You'll find some stats at :
http://www.w3schools.com/browsers/browsers_stats.asp

You could also collect this on your own web site using the client-side
screen object (and posting these values in hidden fields for example).

Of course, it should be used only to make decisions about the global design.
IMO it shoudn't be used as an attempt to dynamically adapt each page to the
current resolution (HTML does quite a nice job at this when working with
relative units).

Patrice

--

Ken Cooper said:
Hi,

Is it possible to determine users screen width in ASP.NET?

I have tried Request.ServerVariables("HTTP_UA_PIXELS") but this returns
nothing.

I am being pointed in the direction of Request.Browser.GetConfigCapabilities
but don't know what configKey to use. Is this an unfinished and undocumented
feature in the framework or is there some real help available somewhere?

Some important design decisions need to made about our site but these depend
on the screen resolutions being used by our visitors. How common is 800x600
now??? Can we "harvest" this information without asking users to
complete
a
survey form?

Many Thanks,

Ken

k.a.cooper___[at]___shu.ac.uk
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top