Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old August 24th, 2006, 11:02 AM
Registered User
 
Join Date: Aug 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default asp:tablecell height not working

Ok, I'm having problems with asp:tablecell heights.


The code generates a table that has two columns and two rows, there are two cells in the first column and one in the second column.

The problem is that i can't get the height in the first cell in the first column to be static. The text in it doesn't change.

What happens is that I dynamically load a control into the second column cell and the heights in the first column get adjusted depending on the height of the control in the second column.



Here is the source for the table:

<asp:Table ID="Table1" runat="server" horizontalalign="center" GridLines=both BorderColor="#892034" BorderWidth="1px" CellPadding=0 CellSpacing=0 Width="800px">
    <asp:TableRow>
        <asp:TableCell ColumnSpan=2><uc1:header id="Header1" runat="server"></uc1:header></asp:TableCell>
    </asp:TableRow>
    <asp:TableRow>
        <asp:TableCell ColumnSpan=2><uc1:menu id="Menu1" runat="server"></uc1:menu></asp:TableCell>
    </asp:TableRow>
    <asp:TableRow Height="50px">
        <asp:TableCell id=sidesearch VerticalAlign=top Width="100px" HorizontalAlign=center BackColor="#ededdd">
            <br />
            <asp:Label ID=label2 Text="Subcode:" runat=server CssClass=sidemenu></asp:Label>
            <br />
            <br />
            <asp:TextBox ID=subcode runat=server MaxLength=5 Width=30px></asp:TextBox> &nbsp;&nbsp;&nbsp;
            <asp:Button ID=subcodego runat=server Text="Go!" />
        </asp:TableCell>
        <asp:TableCell VerticalAlign=top width="600px" RowSpan=2>&nbsp;
            <asp:PlaceHolder id="Section" runat="server"></asp:PlaceHolder>
        </asp:TableCell>

    </asp:TableRow>

    <asp:TableRow>
        <asp:TableCell id=sidemenu VerticalAlign=top Width="100px" HorizontalAlign=center Height="99%" BackColor="#ededdd" >
            <br />
            <br />
            <asp:LinkButton id="specificationslink" Text="Specifications" CssClass=sidemenu runat=server/>
            <br />
            <br />
            <asp:LinkButton id="budgetlink" Text="Budget" CssClass=sidemenu runat=server/>
            <br />
            <br />
            <asp:LinkButton id="criterialink" Text="Criteria" CssClass=sidemenu runat=server/>
            <br />
            <br />
            <asp:LinkButton id="donorlink" Text="Donors" CssClass=sidemenu runat=server/>
            <br />
            <br />
            <asp:LinkButton id="noteslink" Text="Notes" CssClass=sidemenu runat=server/>
            <br />
            <br />
        </asp:TableCell>
    </asp:TableRow>
</asp:Table>


I've also tried setting the value on page_load by declaring a unit and setting the height to that unit.

Thanks for any help.

Kevin



Similar Threads
Thread Thread Starter Forum Replies Last Post
Working with min-height rsearing BOOK: CSS Instant Results 0 June 9th, 2007 12:58 PM
Fixed table height and row height rajanikrishna HTML Code Clinic 3 January 18th, 2007 12:42 AM
Problem with sorting asp:tablecell columns rrajeshbe ASP.NET 2.0 Basics 0 June 1st, 2006 08:28 AM
Change height of div element if < window height JoelJunstrom Javascript How-To 1 October 10th, 2003 09:14 AM
ASP Navigation not working????? bushbird Classic ASP Databases 1 August 20th, 2003 01:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.