Search:
Namespaces
Discussions
.NET v1.1
Feedback
dynamic positioning of div footer
Messages
Related Types
This message was discovered on
ASPFriends.com 'aspngclient' list
.
John Tyson
Hi,
I have an aspx page that is broken up into div's. The content div
height can vary depending on the length of the text within. A footer
div follows the content div.
I have the position style elements set to absolute on the div's. My
problem is that because the content div height can vary, I have to set
the footer's top style value programmatically. I am trying to do so in
a Page_Load sub procedure, where I declare an integer variable and set
it equal to content.style.posHeight (content being the id of my content
div).
I get the resulting error content.style.posHeight is not a member of
system.web.ui.
CssStyleCollection
. Can someone offer a suggestion as to
what this erro means/how to resolve it? I want to set my variable equal
to the div's height and then, in my footer div, state top:
variable.value.
Thanks,
John
Reply to this message...
John Tyson
Hi,
This is more info for my original post (see below)...this is the error I
received:
Compiler Error Message: BC30456: 'posHeight' is not a member of
'System.Web.UI.CssStyleCollection'.
Source Error:
Line 12: Sub Login_Click(s As Object, e As Eventargs)
Line 13: Dim VarCtrColHt as Integer=20
Line 14: VarCtrColHt =3D pageCtrCol.style.posHeight
Line 15: End Sub
Line 16:
I've done some research and it looks like I need to use CssEventArgs
instead, but I don't understand how to change my code. I found this on
MSDN:
Public Sub
CssEventArgs(
ByVal sName As string; *Required. Name of the attribute.
ByVal sValue As string *Required. The Value
)
How can I rebuild my Sub to find the height of a div and capture it into
a variable of integer type? The height of the div that I am trying to
determine is height: auto in my stylesheet so that the div fits to the
length of the subject text in each page.
I would really, truly appreciate any help. I've been wracking my brain
for two days now and have a good idea of what has to happen, but just
don't have enough experience to code it correctly. Thank you.
************************************************************************
****
Hi,
I have an aspx page that is broken up into div's. The content div
height can vary depending on the length of the text within. A footer
div follows the content div.
I have the position style elements set to absolute on the div's. My
problem is that because the content div height can vary, I have to set
the footer's top style value programmatically. I am trying to do so in
a Page_Load sub procedure, where I declare an integer variable and set
it equal to content.style.posHeight (content being the id of my content
div).
I get the resulting error content.style.posHeight is not a member of
system.web.ui.
CssStyleCollection
. Can someone offer a suggestion as to
what this erro means/how to resolve it? I want to set my variable equal
to the div's height and then, in my footer div, state top:
variable.value.
Thanks,
John
Reply to this message...
John Tyson
Hi,
I have an aspx page that is broken up into div's that is based on a
stylesheet. The content div height can vary depending on the length of
the text within. A footer div follows the content div.
I have the position style elements set to absolute on the div's. My
problem is that because the content div height can vary, I have to set
the footer's top style value programmatically. I am trying to do so in
a Page_Load sub procedure, where I declare an integer variable and set
it equal to content.style.posHeight (content being the id of my content
div).
I get the resulting error content.style.posHeight is not a member of
system.web.ui.
CssStyleCollection
. Can someone offer a suggestion as to
what this erro means/how to resolve it? I want to set my variable equal
to the div's height and then, in my footer div, state top:
variable.value.
Thanks,
John
Reply to this message...
System.Collections.ArrayList
System.Web.UI.CssStyleCollection
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com