| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
sql query category determines row color
Trying to create a asp that when a sql data base is queried and a word example in column "nvarchar5" = 'orange' or 'red' appears, then the color of that row changes
|
|
#2
|
||||
|
||||
|
Quote:
After you query the database, set it to a value like rowcolor. Then in your table, Code:
<tr bgcolor="<%=rowcolor%>"> Hope this helps. |
|
#3
|
|||
|
|||
|
did something similar, but used styles
Code:
<tr class="<%=rowStyle%>"> which is set in a condition statement in a Query as jmurrayhead has said. I prefer having full control in the css. but down to ur personal preference. |
|
#4
|
||||
|
||||
|
Quote:
I do agree with sickmusic. Using CSS would give you full control, but you would still be using the same basic idea. |
![]() |
| Viewing: ASP Free Forums > Web Design > Web Layout > sql query category determines row color |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|