Solved

ResultSet rows background color change

Posted on 2006-11-07
2
161 Views
Last Modified: 2010-04-01
Hi

I have retrun code to pull data from database and display inform of tables.
My question is how to change background of the rows when displayed in.
for example first row is blue second rows is read third row is red.
how can I do when resultset values are printed in table.
Please give me some example.
Thanks
0
Comment
Question by:basirana
2 Comments
 
LVL 19

Accepted Solution

by:
Kuldeepchaturvedi earned 500 total points
ID: 17890999
you can use css styles to do it...

<TR class = "blue">
</TR>
<TR class="red"></TR>

in your css file..

.blue
{
    BACKGROUND-COLOR: blue;
    FONT-FAMILY: verdana,arial,sans-serif;
    FONT-SIZE: 10pt;
    FONT-STYLE: normal;
    FONT-WEIGHT: normal;
    LINE-HEIGHT: 12pt;
    TEXT-INDENT: 0px
}
.red
{
    BACKGROUND-COLOR: red;
    FONT-FAMILY: verdana,arial,sans-serif;
    FONT-SIZE: 10pt;
    FONT-STYLE: normal;
    FONT-WEIGHT: normal;
    LINE-HEIGHT: 12pt;
    TEXT-INDENT: 0px
}
0
 
LVL 10

Expert Comment

by:jaggernat
ID: 17891237
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I'm trying, I really am. But I've seen so many wrong approaches involving date(time) boundaries I despair about my inability to explain it. I've seen quite a few recently that define a non-leap year as 364 days, or 366 days and the list goes on. …
Facing problems with you memory card? Cannot access your memory card? All stored data, images, videos are lost? If these are your questions...than this small article might help you out in retrieving your lost or inaccessible data.
A short film showing how OnPage and Connectwise integration works.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

943 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now