Hello,
I've got a .NET Web application (Visual Studio 2003 & .NET FW 1.1), and when
running my app from Visual Studio it detects my screen resolution properly,
but when I deploy it to the web-server machine, it always detects it as 1280
x 1024.
Is there something that needs to be entered in the config or a file uploaded
with the pages/code to the webserver to make this work?
I'm using:
System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height.ToString()
System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width.ToString()
Michael Nemtsev - 10 May 2006 06:08 GMT
Hello Steve,
WS detect the screen resolution on the server side, that's why on your local
machine it works properly.
When you install you WS to the server machine it returns you the resolution
of the server, not yours.
Use javaScript screen.width screen.height to detect client resolution
SS> I've got a .NET Web application (Visual Studio 2003 & .NET FW 1.1),
SS> and when running my app from Visual Studio it detects my screen
SS> resolution properly, but when I deploy it to the web-server machine,
SS> it always detects it as 1280 x 1024.
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche