473,718 Members | 1,907 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Extra space after asp:tablecells?

I'm dynamically building a table in the code behind and I'm having a problem
with an extra space after the tablerow. The HTML renders like this:

<td>
<a href="#"><img src="mypicture1 .bmp" border="0" /></a>
</td>
<td>
<a href="#"><img src="mypicture2 .bmp" border="0" /></a>
</td>
<td>
<a href="#"><img src="mypicture3 .bmp" border="0" /></a>
</td>

If I were to compress each <td> into one line (as below), the extra space
does not appear after the row:

<td><a href="#"><img src="mypicture1 .bmp" border="0" /></a></td>
<td><a href="#"><img src="mypicture2 .bmp" border="0" /></a></td>
<td><a href="#"><img src="mypicture3 .bmp" border="0" /></a></td>

Is there anyway around the extra spacing that ASP.net is forcing into my
table?

TIA,
Diane
Nov 18 '05 #1
0 1252

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

Similar topics

4
4088
by: Greg Linwood | last post by:
I am wondering what the best approach to binding XML data to an asp:Table from the Page_Load event in a code behind module? I'm using VB.Net and initially approached this by adding a table to the web page from the VS2003 ASP page designer, extracting an XML document from SQL Server during Page_Load, then adding asp:TableRows & asp:TableCells one at a time / loading the corresponding xml values a cell at a time. Is there a better (less...
0
308
by: Diane Yocom | last post by:
I'm dynamically building a table in the code behind and I'm having a problem with an extra space after the tablerow. The HTML renders like this: <td> <a href="#"><img src="mypicture1.bmp" border="0" /></a> </td> <td> <a href="#"><img src="mypicture2.bmp" border="0" /></a> </td> <td>
3
7912
by: Alex Maghen | last post by:
Okay, I'm sure that this is an incredibly simple one and it may have more to do with HTML than with ASP.NET I have an ASP:Table with no borders and that table has several ASP:TableRows, each with several ASP:TableCells in them I have no trouble setting the BorderWidth, BorderStyle, etc. of the individual TableCells or even of the whole ASP:Table. But what if I want to set the BorderStyle and BorderColor, etc. of one of the ASP:TableRows?...
0
1245
by: Davey P | last post by:
I have an asp.net table which I am populating with controls dynamically at runtime. The controls themselves get/set values in a datatable which is stored in viewstate over postbacks. Here is basically what I am doing: pull datatable out of viewstate for each row in datatable create tablerow create tablecells create controls
5
8509
by: Mark Rae | last post by:
Hi, Is it possible to add events, specifically a Click event, to a dynamically created TableCell? I have an <asp:Table...> control to which I'm dynamically adding TableRow controls made up of TableCell controls - before you ask, the underlying data is really not suitable for a DataGrid or Repeater... Now, the client is asking for each dynamically added TableCell control to
4
6338
by: Dabbler | last post by:
I'm trying to block out some text by setting Label width attribute which renders as a span tag so that all labels for textfields take up the same amount of space hence the textfields are all aligned but for some reason the width is being ignored in IE 6 even though it works in Firefox. Is there some bug associated with this and maybe the Doctype specification? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"...
2
1073
by: Merdaad | last post by:
Hi, I am using ASP.NET 2.0 with C#. ViewState is not working for controls created at runtime. On a page I have a few (static) textboxes that get populated from database and then I create other textboxes during runtime using the folloiwng steps: 1. I add a TableRow(TR) to an existing table using HtmlTableRow 2. I add TableCells(TD) to the above TR using HtmlTableCell 3. I add TextBoxes to the TDs using using TextBox Then I start...
4
1871
by: Mark Rae | last post by:
Hi, Consider the following: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > .... .... ....
1
1524
by: Jeff | last post by:
hi asp.net 2.0 Below is some markup I have trouble with. The problem is that the Textbox doesn't fill the entire DataCell. I've set width of TextBox to 100%.... The point is that I want the * to be aligned exactly at the right corner of the TextBox. As it is now there is a huge space between them, maybe 30px
1
9490
by: gandhi.vishal | last post by:
Hello, I have an issue. I'm not seeing the reportviewer data at all. The column names come up fine but there is no data in the report table. Here is what I'm doing I created a dataset with the following query select * from av_project_mst where apm_project_id=@projectid Now I created a report (.rdlc) and dragged a table onto it and the report looks like the following
0
9206
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
9118
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
9052
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
7985
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...
0
5971
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
4481
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
3180
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
2
2550
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2122
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.