Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: SV: Alternating colors in table row


Message #1 by "SD-Studios" <info@s...> on Thu, 4 Apr 2002 15:42:28 +0200
This is a multi-part message in MIME format.

------=_NextPart_000_0012_01C1DBEF.534BD570
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 8bit

Just put it like this:

<%
Dim num
num = 0

Do While Not objRS.EOF

 Response.Write "<tr bgcolor="""
  if num mod 2 = 0 then
   Response.Write "#B3C3D4"
  Else
   Response.Write "#FFFFFF"
  End IF
 Response.Write """>"
%>

' HERE YOU PUT YOUR TABLE

 </tr>
<%
num = num + 1
objRS.MoveNext
Loop
%>

Hope this will help you! =)
--
Martin Johansson,
CEO & Project Supervisor
SD-Studios
+46 (0)70-3003320
http://www.sd-studios.com
  -----Ursprungligt meddelande-----
  Från: Earljon K. A. Hidalgo [mailto:earl@p...]
  Skickat: den 4 april 2002 12:24
  Till: ASP Databases
  Ämne: [asp_databases] Alternating colors in table row


  Hello Member!

  Just like to ask how can i make a table that has an alternate color
display of table rows?
  Any help would be appreciated.

  TIA
  ---------
  Earljon K. A. Hidalgo

  "Never give up on what you really want to do. The person with big dreams
is more powerful than one with all the facts."-- Life's Little Instruction
Calendar



  Return to Index