Browser and Screen Size in server side codehttp://forums.asp.net/t/296403.aspx/1?Browser+and+Screen+Size+in+server+side+codeFri, 01 Aug 2003 17:39:05 -0400296403296403http://forums.asp.net/p/296403/296403.aspx/1?Browser+and+Screen+Size+in+server+side+codeBrowser and Screen Size in server side code Is it possible to determine the screen size of the web client, as well as the screen size of the browser in server-side code? I know in client side code, you would use screen.availwidth, screen.availheight, ... etc to obtain this information, but is it available to server side code? Thanks, Andrew 2003-07-31T20:13:45-04:00296429http://forums.asp.net/p/296403/296429.aspx/1?Re+Browser+and+Screen+Size+in+server+side+codeRe: Browser and Screen Size in server side code Any value that is available to you on the client side can be made available to the server by writing it to a form element (usually a hidden input) before the submit. document.forms[0].screenheight.value=screen.availheight; &lt;form runat=server&gt; &lt;input type=hidden id=screenheight runat=server&gt; &lt;/form&gt; 2003-07-31T20:28:43-04:00296664http://forums.asp.net/p/296403/296664.aspx/1?Re+Browser+and+Screen+Size+in+server+side+codeRe: Browser and Screen Size in server side code check out my free <a href="http://www.metabuilders.com/Tools/ResizeMonitor.aspx"> ResizeMonitor control</a> 2003-08-01T00:10:57-04:00297321http://forums.asp.net/p/296403/297321.aspx/1?Re+Browser+and+Screen+Size+in+server+side+codeRe: Browser and Screen Size in server side code Thanks so much, but I want to know if the ability is built into dot.net so that I don't have to place the code on the client side first and wait for a postback. Andrew 2003-08-01T14:52:03-04:00297545http://forums.asp.net/p/296403/297545.aspx/1?Re+Browser+and+Screen+Size+in+server+side+codeRe: Browser and Screen Size in server side code HTTP Get requests do not include the size of the screen nor the size of the browser. There is nothing that any serverside technology can ever do to change that. You could emit some script that performs an immediate postback whenever you don't know the sizes. This way you could be assured of knowing this information, in the case that the browser supports script at all. If the browser doesn't support script, you will never know its size information. Most people who want this information, are using it to &quot;reflow&quot; their grid/absolute positioning based form designs. I would suggest you stop using grid based designs, and switch to flow based layout, as HTML is intended to be used. 2003-08-01T17:39:05-04:00