Microsoft
Software
Hardware
Network
Question : How to change td bgcolor based on database result returned
<td><%=rs("Red")%></td>
I would like the td bgcolor change to red, when <%=rs("Red")%> returns number 1.
If the returned value is else than 1, I'd like the td bgcolors be white, or no color at all.
Can anyone please help me with this? Thank you very much.
Answer : How to change td bgcolor based on database result returned
I was playing with it and finally I found the solution:
<%If rs("Red") =1 Then %>
<td align="center" bgcolor="red"> </td>
<%Else%>
<td bgcolor="white"> </td>
<%End If%>
Random Solutions
difficulty in binding DataGridView in windows form
Acrobat 8 Pro, Adobe EPIC_APP Serious Error - Windows 7 Ultimate 64bit
How to create a Despatch Roster Summary
Php SOAP-ERROR: Parsing WSDL
Flex Drag and Drop
PHP string replace question
SQL Problem
Access 2007, form datasheet view, change display property of an element based on another element in the record
Return a Char at position
return double array in Delphi call to c++