Display Tables with ASP

Results 1 to 2 of 2

Thread: Display Tables with ASP

  1. #1
    Nik Guest

    Default Display Tables with ASP

    Hi! I have some problems with displaying large tables. I would like to make them easier to read by using different background colors on every second row. Is this possible??

  2. #2
    Join Date
    Dec 1969

    Default RE: Display Tables with ASP

    Sure,<BR><BR>When you are building your table you will have an opportunity to define the color of the cells. Just flip it back and forth each pass:<BR><BR>the starting table code...bla bla bla<BR>&#060;%<BR>bgcolor = ""<BR>mycounter = 0<BR>Do until rs.eof%&#062;<BR> &#060;td&#062;&#060;bg=&#060;%=bgcolor%&#062;<B R> &#060;%in goes your information%&#062;<BR>&#060;%If mycounter &#062; 1 Then<BR> mycounter = 0<BR> bgcolor = "whateveryouwanthere"<BR> Else<BR> mycounter = mycounter + 1<BR> bgcolor = ""<BR> End If<BR>rs.movenext<BR>loop<BR>%&#062;<BR><BR>and so on.<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts