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>
<asp:Button ID=subcodego runat=server Text="Go!" />
</asp:TableCell>
<asp:TableCell VerticalAlign=top width="600px" RowSpan=2>
<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
|