Something like:

        If not objrecordset.eof Then
                objrecordset.movefirst
                        bgcounter=0
                while not objrecordset.eof
                        altcolor = bgcounter MOD 2
                        If altcolor = 0 Then
                                bgcolor = "#FFFFFF" 'whatever color you want
                        Else
                                bgcolor = "#E5E5CC" 'whatever color you want

        'Write your table row information here

                bgcounter = bgcounter + 1
                   objrecordset.movenext
                   wend
               else
                     response.write ""
               end if

Quoting Robert Swiger <[EMAIL PROTECTED]>:

> I want to display rows of results from a db search but I want one row's
> background color to be white and the other to be light gray. How can I do
> this?
> 
> Rob Swiger
> Webmaster
> TCRH.org
>  
> Twin County Regional Healthcare
> Information Systems
> 200 Hospital Drive, Galax, VA  24333
> PH: 276.238.3515
> FX: 276.236.2660
> http://www.tcrh.org
> [EMAIL PROTECTED]
> 
> GO HOKIES!!!!!!!!
> Confidentiality Notice:  This email message, including any attachments, is
> for the sole use of the intended recipient(s) and may contain confidential
> and privileged information.  Any unauthorized review, use, disclosure or
> distribution is prohibited.  If you are not the intended recipient, please
> contact the sender by reply email and destroy all copies of the original
> message.
> 
> ---
> You are currently subscribed to activeserverpages as:
> [EMAIL PROTECTED]
> To unsubscribe send a blank email to
> %%email.unsub%%
> 





---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to