How can I get the screen width on the server side in an Asp.net (C#) project?
Use code below
int width = (Request.Browser.ScreenPixelsWidth) * 2 - 100; int height = (Request.Browser.ScreenPixelsHeight) * 2 - 100;