|
Subject:
|
Size of Screen
|
|
Posted By:
|
cinest
|
Post Date:
|
9/17/2004 1:05:16 PM
|
Hi!
I want to know te size of the screen.
I have the command:
Response.Write("Width = " + SystemInformation.WorkingArea.Width.ToString())
But, when I run the application, I have the following error:
Compiler Error Message: BC30456: 'Windows' is not a member of 'System'.
Can anyone help me?
Thank´s!
|
|
Reply By:
|
r_ganesh76
|
Reply Date:
|
9/17/2004 11:44:08 PM
|
What is your requirement?? Do you want to get the width of the browser?
SystemInformation is part of the System.Windows.Forms namespace and you are trying to use it with a web application. to get the width of the browser, use a client side script
|
|
Reply By:
|
pradeep_itguy
|
Reply Date:
|
10/8/2004 3:33:55 AM
|
Client Side JavaScript to get the screen resolution
<A HREF="javascript:alert('Your resolution is '+screen.width+'x'+screen.height);"> Click for your screen resolution</A>
It is not how much we do, but how much love we put in the doing.
-Mother Theresa
|