Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Screen resolution - ASP?

Status
Not open for further replies.

eclipse33

Programmer
Apr 13, 2001
94
CA
Is there a way to use the Request.ServerVariables command to get the screen resolution. I saw Request.ServerVariables("HTTP_UA_PIXELS") on a ASP page but for some reason it will not write to my database like the rest of my ServerVariables.

If not...what are my options?

I know there is a way in Javascript..

varWidth = screen.width;
varHeight = screen.height;

but then can I write these values to the database with ASP

Can I do it in VB Script?


Thanks in advance
eclipse33
 
Well, that is the server side solution to that problem.

In order to get those javascript variables in there, you'll need to place them in some hidden form variable or something, and send them back with the next post, and then record it then.

Don't know if that would be an option, but it'll be about the best you can do, if uaPixels doesn't work for you.

penny.gif
penny.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top