.NETGURU
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




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification