PC Review


Reply
Thread Tools Rate Thread

DataList Creates Tables That Are Not Well-Formed

 
 
Nathan Sokalski
Guest
Posts: n/a
 
      30th Nov 2005
I have a DataList control that has 3 columns (RepeatColumns property = 3).
However, because the number of Items in the DataSource is not always equally
divisible by 3, the last 1 or 2 cells in the generated Table is sometimes
missing. Rather than place code such as <TD></TD> there, ASP.NET simply
leaves it blank. Therefore, the last row is sometimes not well-formed. This
not only causes problems in some browsers, but because my Templates have a
background color, the area of the missing cell looks weird because the page
background shows through. I am sure I am not the first person to have this
problem, so I would think that there should be some way around this other
than writing extra code (I know how to use the Mod operator, but I want to
know if there is some way without doing extra calculations. Is there? Is
there one in ASP.NET 2.0? Thanks.
--
Nathan Sokalski
(E-Mail Removed)
http://www.nathansokalski.com/


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Links through multiple tables creates duplicates Robbro Microsoft Access 4 8th Jan 2010 05:02 PM
Removing Data Tables formed from importing data from Access Andrea Jones Microsoft Excel Misc 0 10th Apr 2008 12:01 PM
input mask formatting is lost when tables are formed to a union qu Susan Microsoft Access 2 2nd Jan 2008 03:06 AM
DataList Creates Tables That Are Not Well-Formed Nathan Sokalski Microsoft ASP .NET 0 30th Nov 2005 06:08 AM
Access creates new tables in my relationships Paula Microsoft Access Database Table Design 4 6th Oct 2003 04:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:52 AM.