This is all clientside info... you'll have to use some javascript to grab
this and post it back to the server to use it....
May I ask why though? perhaps there is a better way to get to your end goal.

Signature
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
I have a webcontrol that will not resize to the height of the page. I have
set the table it resides in to 100% height but it still doesnt work. I have
exposed a property that allows me to set the height but I need to get a
value from the page to pass to the control. there may very well be an
easier way to do this though...I just haevn't found it.
> This is all clientside info... you'll have to use some javascript to grab
> this and post it back to the server to use it....
[quoted text clipped - 7 lines]
>>
>> Calvin X
Kevin Spencer - 26 Oct 2005 22:11 GMT
Set the height of the WebControl to 100% also. It will resize to the size of
the container it is in. So, if it's in a table, you need to set BOTH to
100%.

Signature
HTH,
Kevin Spencer
Microsoft MVP
.Net Developer
A watched clock never boils.
>I have a webcontrol that will not resize to the height of the page. I have
>set the table it resides in to 100% height but it still doesnt work. I
[quoted text clipped - 13 lines]
>>>
>>> Calvin X
Peter Rilling - 26 Oct 2005 22:11 GMT
You cannot pass that information to your control (well, easily). I would
suggest playing around with <div> and <table> tag to get it to resize. Make
sure your tables are not in some other container. Remember, 100% does not
mean "of the page", it refers to its parent container.
>I have a webcontrol that will not resize to the height of the page. I have
>set the table it resides in to 100% height but it still doesnt work. I
[quoted text clipped - 13 lines]
>>>
>>> Calvin X
Don't you hate it when people answer a question with a question. Here's
some code to help you out. You decide if it's what you want to do.
<html>
<head>
<script>
function ShowCoordinates()
{
var oDiv = document.getElementById("test");
alert(oDiv.offsetHeight);
alert(oDiv.offsetWidth);
alert(oDiv.offsetTop);
alert(oDiv.offsetLeft);
}
</script>
</head>
<body onload="ShowCoordinates()">
test
<div id="test">
Some Text
</div>
</body>
</html>
Best of luck!
Matt Furnari