Re: Get browser window size from C# codebehind

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Thanks, William,

I found a better way - all controls are using %% instead of pixels and it
works just great and on the client side. Yes, it brings some disadvantages
during development, but it price is good - the convenient resizable
interface.

Just D.


>I don't think you can even get the browser size beyond using the client
>side
> function getBoundingClientRect(), but I haven't had any luck really
> determining the size of the browser. There is also a screen.width,
> screen.height property that will return the screen resolution the browser
> is
> on.
>
> If you do find a way, you will need to send this information back to the
> server, so you can do something with it. Plus, what will stop your user
> from resizing their browser window?


.



Relevant Pages

  • Re: Attempt to de-mystify AJAX
    ... > conviction when we know the client is leading ... > code into the browser that it's now just as thick as anything people ... > 1) IT used to think BUI development was easy. ... > 2) Therefore IT people advocated thin client. ...
    (comp.databases.pick)
  • Re: access only to one external site
    ... Is the firewall client installed on the client? ... Is the browser configured to use a proxy or not? ... If you can send a zipped print screen of the Destination Set definition it ...
    (microsoft.public.isa.configuration)
  • Re: Why 64bit Delphi compiler from Borland may be meaningless!
    ... "We had to make a choice with the 64-bit client as to which browser, ... our decision was swayed by the lack of 64-bit native controls. ... was difficult to use because web sites hadn't authored common controls ...
    (borland.public.delphi.non-technical)
  • Re: Pure client-side javscript database?
    ... the individual asking the question in their single context. ... in the current browser instance and a respondent assumes the question ... >>> that the client may download an application from a server ... >>> server, but the APPLICATION may or may not be. ...
    (comp.lang.javascript)
  • Re: Still Need desperate help to start with ASP NET - simplified problems - HELP!!
    ... Now you can process the entered arguments at startup. ... browser and program so that you can leave all the client server ... back to IIS to send to the client you are going to have to find out ...
    (microsoft.public.dotnet.framework.aspnet)