473,763 Members | 1,320 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="TableHea der" colspan="2">
<asp:Label ID="lblTitle" runat="server" Text="New
Document"></asp:Label>
</td>
</tr>
<tr>
<td class="FormLabe l" style="width: 15%">Title</td>
<td>
<asp:TextBox ID="txtDocument Title" runat="server"
Width="100%"
MaxLength="255" ></asp:TextBox>
</td>
</tr>
<tr>
<td class="FormLabe l" valign="top">De tails</td>
<td>
<asp:TextBox ID="txtDocument Details" runat="server"
Width="100%"
TextMode="Multi Line"></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 1220

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

Similar topics

0
10844
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
19787
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 .number { width: 10px; }. In Mozilla this works, but IE ignores this. Next to adding an invisible "0" precding one-digit numbers, what can I do to solve this?
1
1734
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 src="topRight.gif"></td> </tr> </table>
0
2339
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 the correct width - they show very thin, unless a cell above it shows the correct width. How do I ensure that all cells have an absolute width. I've assigned them a class property which points to a style that has width: "200px"
4
2771
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 remainder of the width available. In ASP.NET the 2nd cell (when set to 100%) is 500 pixels wide (hence overlapping the image in row 1), wheras in classic ASP the cell would have a width of 500-22 = 478 pixels (thus filling the remainder of the...
6
6020
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 cannot seem to get my table to render properly, so I pulled out all the server controls and just made a very simple HTML only page and am having the same problem still. The problem can bee seen in the code below. The top row is 100px high and the...
0
2342
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: right; clear: right;> <div class="schoolofcenter">
8
8447
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 column width to be same so that one cannot see that it's actually two tables. <table border="1" cellspacing="3" cellpadding="5"> <tr> <td align="center" width="10">Text1</td> <td align="center" width="10">Text2</td> <td align="center"...
1
4966
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"); c1td1.Text ="&nbsp;"+ strhr;
0
10145
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9998
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9938
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9822
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8822
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7366
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5270
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3917
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.