By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,281 Members | 2,201 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,281 IT Pros & Developers. It's quick & easy.

Possible to detect monitor display settings in ASP.NET?

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a

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 discussion thread is closed

Replies have been disabled for this discussion.