Ask a Question related to ASP.NET Building Controls, Design and Development.
-
Jim #1
page size...
I have a pop window that is displayed and depending on the state of the
system it will contain any number of user controls(ascx). These controls
contain dynamic content and therefore the size of the control can change
dynamically.
Is it possible to work out the size of the page that is going to be
displayed from the code behind page and then resize the pop window
accordingly?
Cheers
Earth Worm Jim
Jim Guest
-
page size
We need to mix letter and legal in same package. Anyone know how to embed page size selection in the document? -
changing size of swf according to html page size
hi experts I want to change size of my swf according to the size of html page in which it opens such that if page size is 1024 by 768 then swf... -
page layout - web page size
When I maximise my browser window when viewing my published web pages, the page no longer fills the window, leaving an unused area to the right,... -
Page SIze BUG?!
Hi Gang, Here’s a strange one. Has anybody tried setting their page set up to print at 55%, 56%,57% or 58% ?. The page margin and size is doing some... -
Setting page size to artboard size?
I'm trying to layout a presentation folder with pocket flaps etc. The dimensions of the die template I'm using are at their outtermost, 60cm by... -
Patrick Dahmen #2
Re: page size...
Ouch sorry. Didn't see...
"Jim" <ssss> wrote in message news:OCoTCV8kDHA.2500@TK2MSFTNGP10.phx.gbl...> I have a pop window that is displayed and depending on the state of the
> system it will contain any number of user controls(ascx). These controls
> contain dynamic content and therefore the size of the control can change
> dynamically.
>
> Is it possible to work out the size of the page that is going to be
> displayed from the code behind page and then resize the pop window
> accordingly?
>
> Cheers
>
> Earth Worm Jim
>
>
>
Patrick Dahmen Guest
-
Patrick Dahmen #3
Re: page size...
Yes I think it is.
I IE you could generally use getBoundingRect() function to retrieve the size of your controls, even if they have no constant size (width or height params within style element)
for example
<script>
function changeWindowSize()
{
var oSizingControl = document.getElementById('sizingControl');
width = oSizingControl.getBoundingClientRect().right - oSizingControl.getBoundingClientRect().left;
height = oSizingControl.getBoundingClientRect().bottom - oSizingControl.getBoundingClientRect().top;
window.resizeTo(width + 25, height + 50);
}
</script>
<body onload="changeWindowSize()">
<asp:Label runat="server" id="sizingControl">Here is my text, i don't know the width and height of</asp:Label>
</body>
I hope that helped...
"Jim" <ssss> wrote in message news:OCoTCV8kDHA.2500@TK2MSFTNGP10.phx.gbl...> I have a pop window that is displayed and depending on the state of the
> system it will contain any number of user controls(ascx). These controls
> contain dynamic content and therefore the size of the control can change
> dynamically.
>
> Is it possible to work out the size of the page that is going to be
> displayed from the code behind page and then resize the pop window
> accordingly?
>
> Cheers
>
> Earth Worm Jim
>
>
>Patrick Dahmen Guest



Reply With Quote

