Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #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:TableCell ColumnSpan=2><uc1:header id="Header1" runat="server"></uc1:header></asp:TableCell>
        <asp:TableCell ColumnSpan=2><uc1:menu id="Menu1" runat="server"></uc1:menu></asp:TableCell>
    <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 VerticalAlign=top width="600px" RowSpan=2>&nbsp;
            <asp:PlaceHolder id="Section" runat="server"></asp:PlaceHolder>


        <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 />

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.



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 11:04 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.