Link to home
Start Free TrialLog in
Avatar of Programmer_to_be
Programmer_to_be

asked on

Calculate height/width for a control

Hi,

I have a control on my aspx page, it has a Height and Width property that I want to set on Page_Load. The height and width should correspond to the browser windows size (depending on users resolution) and therefore the control should fill the entire browser window (without the scroll bars appearing when the browser is maximised). How can I calculate the height and width for this control? There should be no whitespace on the page, just the whole control filling the page.

Thank you very much for any help.
ASKER CERTIFIED SOLUTION
Avatar of Göran Andersson
Göran Andersson
Flag of Sweden image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Programmer_to_be
Programmer_to_be

ASKER

A very well explained solution.
Thank you GreenGhost for taking the time out to explain the solution. It worked a charm!