By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,526 Members | 2,189 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,526 IT Pros & Developers. It's quick & easy.

Screen Width

P: n/a
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
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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" <_k.a.cooper_@_shu.ac.uk_> a écrit dans le message de
news:uH****************@TK2MSFTNGP10.phx.gbl...
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


Nov 18 '05 #2

P: n/a
This is excellent Patrice, the stats save me doing the excercise.

Many Thanks,

Ken
"Patrice Scribe" <no****@nowhere.com> wrote in message
news:u0****************@TK2MSFTNGP11.phx.gbl...
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" <_k.a.cooper_@_shu.ac.uk_> a écrit dans le message de
news:uH****************@TK2MSFTNGP10.phx.gbl...
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

Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.