473,385 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Acquiring user's screen dimensions

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?
Jul 19 '05 #1
3 1402
Send the results back to the server in some way, such as in the querystring.

http://www.aspfaq.com/show.asp?id=2043

Ray at work

"Ed" <ed*********@hotmail.com> wrote in message
news:eI*************@TK2MSFTNGP10.phx.gbl...
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?

Jul 19 '05 #2
Take it from JavaScript and send it to ASP. ASP can't access client-side
information...

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
"Ed" <ed*********@hotmail.com> wrote in message
news:eI*************@TK2MSFTNGP10.phx.gbl...
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?

Jul 19 '05 #3
"Ed" <ed*********@hotmail.com> wrote:
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.

--
Tim Slattery
MS MVP(DTS)
Sl********@bls.gov
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Erik | last post by:
I want to write a Server Side PHP program that generates a HTML page client side. How would I get at the clients' screen size, before serving the generated page ? Would it be a two-step process:...
48
by: David J Patrick | last post by:
I'm trying to rewrite the CSS used in http://s92415866.onlinehome.us/files/ScreenplayCSSv2.html. using the w3.org paged media standards as described at http://www.w3.org/TR/REC-CSS2/page.html ...
6
by: allanc | last post by:
i tried using a borderless form + picturebox, which works fine for dimensions smaller than the actual screen dimensions, but for larger sizes the window seems to clip. programs like acdsee seem...
1
by: Patrick | last post by:
need some code for getting screenshots from the secondary monitor on dual monitor display. Here's a bit of the code for a screen from the primary monitor. Bitmap MyImage = new...
7
by: Bredahl jensen | last post by:
Most of the the solution i have seen was throught javascript. Many thanks in advance JB
3
by: prom19 | last post by:
I made my first flash-site, it's based on a top frame that loads the pages and a small bottom frame that doesnt change content. The problem is that the dimensions are fine for my screen (1280X1024),...
1
by: Mufasa | last post by:
I have some machines that apparently are having the screen resolution changed based on group policies ( this is what my Network Engineer is telling me ). These machines are at customer sites so we...
0
by: =?Utf-8?B?amFtZXNjaGk=?= | last post by:
I'm trying to do is to launch Powerpoint Viever 2007 in my secondary screen. I'm still having issues resizing the pptviewer.exe output when moving the window to the second monitor. Here's my code...
4
by: dipalipatel | last post by:
Hi, I have one c# smart device application created in .net 2005. I have fixed size form for my one device. Now i have another device and screen size is chaged menas it is more wider and short...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.