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

Possible to detect monitor display settings in ASP.NET?

Hi,

Is it possible to programmatically detect what display settings the
user has on their monitor with ASP.NET? I need to be able to resize
some of the things on my webpage if the user has their monitor set to
800 x 600. Any help would be greatly appreciated! Thanks!

Joy
Nov 18 '05 #1
4 1561
Hi, Jo

You can do it through Javascript
<script language="javascript" event="onload" for="window"
alert("Width:" + window.screen.width + ";Height:" + window.screen.height)
</script

Bin Song, MCP
Nov 18 '05 #2
Ok that makes sense but I am not very fluent in javascript. How would I
write a function that finds the height and width of the monitor and
based on the results, then changes the properties of a table?

Joy

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3
Just a word of advice Joy. Dump using Visual Ignoramous.NET and
learn C# as it is syntactically and grammatically similar to JavaScript,
and Java and will also allow you to adopt the newer languages that
Microsoft is working on that use C# syntax and grammar.

Furthermore, none of us can be competent as web developers without
mastering JavaScript and learning C# is the best way to kill all of the
birds
with one stone. You can do it if you try. Rise above your fear.

So, you should know about the JavaScript FAQ where there are many
many scripts documented... SEE: http://developer.irt.org/

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET cs*********@REMOVETHISTEXTmetromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

"Joy Labadie" <si***********@yahoo.com> wrote in message
news:#D*************@TK2MSFTNGP10.phx.gbl...
Ok that makes sense but I am not very fluent in javascript. How would I
write a function that finds the height and width of the monitor and
based on the results, then changes the properties of a table?

Joy

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #4

I don't think I ever said I was afraid to learn Javascript fluently.
And thank you for your advice but I think that to improve my Javascript
skills, the most effective method would be to just study Javascript.
And in this particular instance I posted this question not because of a
lack of desire to learn, but because at the moment I am overwhelmed with
learning. There are only so many hours in the day.

Joy

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #5

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

Similar topics

7
by: Michael Hill | last post by:
I have a perl script that i use to render a html page. In that page i call out a stylesheet. If the user has a 800x600 display the fonts are really too big. Since screen resolution is a function...
10
by: santiago538 | last post by:
Hi, Is there any way to specify which monitor a Window.open() will launch a new browser window in on systems with more than one display. It would only need to work with Mozilla browsers, and not...
4
by: sanjana | last post by:
hi can anyone help me with this i want to write a code in c#.net which detects usb storage and media card insertion can anyone help me with this?? thanx
2
by: Mark | last post by:
Experts - I have a laptop running XP docked to a dual monitor setup. I find it quite annoying that even when I undock, I am still on dual monitor setting, which means some of my apps are on the...
10
by: RobinS | last post by:
Hello to all, and happy new year! I have this application that someone wrote that I'm sort of checking out. The forms look fine in design mode, but when I run the application, it crops off the...
0
by: =?Utf-8?B?VG9ueSBBLg==?= | last post by:
I've developed a Windows application with VB .Net 2005. The display setting on my computer is set at 1024 X 768 Pixals, with a Font Size of Small. When the application is run on a computer with...
4
by: =?Utf-8?B?a2F5a28yMDAw?= | last post by:
Hey folks, I'm having a bit of an issue with how Windows Vista (or my ASUS notebook) handles closing my notebook lid. If I have an external monitor (my TV through S-Video) connected to my...
1
by: Jeff | last post by:
I have located the following code and trying to change this so I know if the USB device has been inserted or removed. The problem I have is I alwayd get the Console.WriteLine("Usb removed") so I...
35
by: nobody | last post by:
I need to pop up a modal JS-based dialog (for some reason can't use popup window, much less so showModalDialog()), and I'd like to imitate the system popup titlebar according to user's desktop...
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
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: 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
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
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.