|
 |
access_asp thread: Alternating layout between odd and even rows using ASP and a DB
Message #1 by "Jeremy Goldman" <jeremy@w...> on Tue, 23 Apr 2002 16:09:53
|
|
I'm trying to have the layout of contents within all my odd rows left-
aligned, and the even rows right-aligned. How do I specify outputting
results from my DB in this way?
Message #2 by "Ken Schaefer" <ken@a...> on Wed, 24 Apr 2002 12:22:42 +1000
|
|
If not objRS.EOF then
blnOdd = True
Do While Not objRS.EOF
If blnOdd then
strHTMLAlign="align=""left"""
Else
strHTMLAlign="align=""right"""
End If
Response.Write("<tr>")
Response.Write("<td " & strHTMLAlign & ">" & objRS("field1") &
</td>")
Response.Write("</tr>")
blnOdd = Not blnOdd
objRS.movenext
Loop
End If
Cheers
Ken
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Jeremy Goldman" <jeremy@w...>
Subject: [access_asp] Alternating layout between odd and even rows using ASP
and a DB
: I'm trying to have the layout of contents within all my odd rows left-
: aligned, and the even rows right-aligned. How do I specify outputting
: results from my DB in this way?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
 |