Tech or Treat! Write an article about your scariest tech disaster to win gadgets!Learn more

x
?
Solved

ResultSet rows background color change

Posted on 2006-11-07
2
Medium Priority
?
167 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 19

Accepted Solution

by:
Kuldeepchaturvedi earned 1500 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Ransomware, the malware that locks down its victim’s files until they pay up, has always been a frustrating issue to deal with. However, a recent mobile ransomware will make the issue a little more personal… by sharing the victim’s mobile browsing h…
While there are many new features for iOS 11, these are the five that can improve your digital lifestyle.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

647 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