473,386 Members | 1,830 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,386 software developers and data experts.

Howto detect the size of the browserwindow.

EMW
I created my page to work on a 800x600 size window, but when the user has
his/her screen set on a larger size, they'll get a empty area at the right
side of the screen.
I don't like this, looks unproffessional, so I want to fill it with
something, but only if the size is larger then 800x600.

How can I detect this in the FormOpen part of my aspx program?

rg,
Eric
Nov 18 '05 #1
2 1433
Eric,

resolution of the screen is not part of the standard http header and
therefore, u can not retrieve it on the server-side, from your request
object.

You can access it on the client-side with window.screen.width and
window.screen.height.

A little off-topic.. however, this might a good read:
http://www.smartwebby.com/web_site_d...web_design.asp

--
Cheers!
Rajiv. R
Rajspace.Org

"EMW" <SomeOne@MicroSoftdotCom> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
I created my page to work on a 800x600 size window, but when the user has
his/her screen set on a larger size, they'll get a empty area at the right
side of the screen.
I don't like this, looks unproffessional, so I want to fill it with
something, but only if the size is larger then 800x600.

How can I detect this in the FormOpen part of my aspx program?

rg,
Eric

Nov 18 '05 #2
EMW
thanks!

"Rajiv R" <ra********************@yahoo.com> schreef in bericht
news:ej**************@TK2MSFTNGP11.phx.gbl...
Eric,

resolution of the screen is not part of the standard http header and
therefore, u can not retrieve it on the server-side, from your request
object.

You can access it on the client-side with window.screen.width and
window.screen.height.

A little off-topic.. however, this might a good read:
http://www.smartwebby.com/web_site_d...web_design.asp

--
Cheers!
Rajiv. R
Rajspace.Org

"EMW" <SomeOne@MicroSoftdotCom> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
I created my page to work on a 800x600 size window, but when the user has his/her screen set on a larger size, they'll get a empty area at the right side of the screen.
I don't like this, looks unproffessional, so I want to fill it with
something, but only if the size is larger then 800x600.

How can I detect this in the FormOpen part of my aspx program?

rg,
Eric


Nov 18 '05 #3

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

Similar topics

2
by: EMW | last post by:
I created my page to work on a 800x600 size window, but when the user has his/her screen set on a larger size, they'll get a empty area at the right side of the screen. I don't like this, looks...
1
by: Roy | last post by:
Hi, I have a problem that I have been working with for a while. I need to be able from server side (asp.net) to detect that the file i'm streaming down to the client is saved...
3
by: Dan Sikorsky | last post by:
I can send email using C# and SMTP, but keep closing the connection before the .eml file has left the Queue folder. The length of time the .eml file stays in the Queue folder is dependent on the...
0
by: Dan Sikorsky | last post by:
This is a C# console app using SMTP to send an email. The .EML file stays in the Queue folder because I close down the Internet Connection prematurely. What's the best way to keep the Internet...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.