Acquiring user's screen dimensions

E

Ed

Using JavaScript, I'm able to get the user's screen dimensions with
screen.availWidth and screen.availHeight. But if I want to store this info
in the database using ASP code, how do I go about doing it?
 
A

Aaron Bertrand [MVP]

Take it from JavaScript and send it to ASP. ASP can't access client-side
information...
 
T

Tim Slattery

Ed said:
Using JavaScript, I'm able to get the user's screen dimensions with
screen.availWidth and screen.availHeight. But if I want to store this info
in the database using ASP code, how do I go about doing it?

You have to send it back to the server. You can use a cookie, or a
hidden element in a form.
 

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

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top