This is a migrated thread and some comments may be shown as answers.

Random extra space in table in repeater

1 Answer 170 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
R
Top achievements
Rank 1
R asked on 18 Nov 2011, 05:37 PM
I have a table within a repeater. Sometimes within my table, the cells have extra space between them. It is very random. I have set table width, colgroup for the table, and colspan for each td. Most everything comes out correctly except for a few random cells that get pushed to the right showing blank space in the table. I am using the same code for different data, and sometimes it comes out fine, sometimes it adds the space. I have attached "tableinrepeater.png" that shows an example of this. The other files show a bit of code and style.

1 Answer, 1 is accepted

Sort by
0
R
Top achievements
Rank 1
answered on 18 Nov 2011, 06:40 PM
I found a solution.
http://dotnetdebug.net/2007/05/08/aspnet-repeater-templates-whitespaces-and-visual-studio/
It's something weird where hitting enter between tags in the code (in order to make the code clean and readable) creates this space. If you know why this happens, an explanation would be helpful.
Thanks.
Tags
General Discussions
Asked by
R
Top achievements
Rank 1
Answers by
R
Top achievements
Rank 1
Share this question
or