473,395 Members | 1,623 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,395 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 1434
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.