473,320 Members | 1,902 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Control (in table cell) with a width of 100% causes the end of the control to be clipped - ASP.NET 2.0

Hi,

Weve been doing this sort of thing frequently in ASP.NET but now were
working on a project in ASP.NET 2.0 and were having this very strange
problem.

With the following XHTML...

<table style="width: 500px" cellpadding="2" cellspacing="0">
<tr>
<td class="TableHeader" colspan="2">
<asp:Label ID="lblTitle" runat="server" Text="New
Document"></asp:Label>
</td>
</tr>
<tr>
<td class="FormLabel" style="width: 15%">Title</td>
<td>
<asp:TextBox ID="txtDocumentTitle" runat="server"
Width="100%"
MaxLength="255"></asp:TextBox>
</td>
</tr>
<tr>
<td class="FormLabel" valign="top">Details</td>
<td>
<asp:TextBox ID="txtDocumentDetails" runat="server"
Width="100%"
TextMode="MultiLine"></asp:TextBox>
</td>
</tr>
</table>

In the designer AND in the rendered HTML i get the two text boxes
actually extending OVER the border of there respective containing
cells! So, with the multiline textbox for example, only about half of
the vertical scroll bar can be seen.

So far I've used methods like adding margin and padding styles to push
the widths within the cell so that you can see whole text box. This is
not really adequate (at least for all situations!)

The above example is not the only one i could give. I've got the same
issue with a GridView in a DIV (scrolling div) which i cant get to butt
against the right hand side of the div in a way that doesn't partically
hide one on the columns in the GridView..

Any help with...
1. ...Why XHMTL (causes) or IE renders things this way! (We can't use
Firefox, so please dont ask! Though im considering testing the page on
firefox to try and determine whether it is a browser problem or an
XHTML problem!)
2. ...a solution

Will be greatly appreciated!

---
jw*******@gmail.com

Jun 21 '06 #1
0 1196

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Martin Ernst | last post by:
Hello, i have a table with two rows: <TABLE> <TR> <TD ROWSPAN="2"> <IMG SRC="pics/image.jpg" width="575" height="???"> </TD> </TR>
4
by: Philipp Lenssen | last post by:
I have a site that runs in strict mode in IE6, and IE is making <td>s for simple two-digit numbers really wide. So I want to restrict it (and right-align it) by using <td class="number"> and...
1
by: rwmorey | last post by:
Hi.. I have this code in my page <table width="100%" cellspacing="0" cellpadding="0" border="0"> <tr><td width="9"><img src="topLeft.gif"></td> <td>text goes here</td> <td width="9"><img...
0
by: Jeremy Chapman | last post by:
I've programatically built a table. Some cells in the table have tables inside them. The ones that have tables inside have the correct width, while the ones that have nothing in them do not have...
4
by: Hiwj | last post by:
I am having a problem with a cell in a table in ASP.NET which used to work OK in classic ASP. I have one cell in a row where the width should be 22 pixels and the other cell should take up the...
6
by: jslaybaugh | last post by:
I'm working on an ASP.NET 2.0 application and am having trouble with a very simple table layout. Using ASP.NET 2.0 it defaults to XHTML 1.0 Transitional and I am trying to comply. However, I...
0
by: mephraim | last post by:
I have a page at (view in IE): http://rmc2.dev.leepfrog.com/ie_fix_me/index.html that has an image floated right outside of a main content div that looks like: <img src="blah" style="float:...
8
by: hussain123 | last post by:
Hi List, I am having two table one after the another.Even after setting the column width of both the tables the column takes the width of the data in that column. Ideally I want both the table's...
1
by: yogarajan | last post by:
hello friend this is my code TableCell c1td1 = new TableCell(); DateTime dbdate = Convert.ToDateTime(dr); string strhr = dbdate.ToString("h:mm tt"); ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.