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
Websense - Block Internet Access - Except for Updates
User can't receive emails sent to her personal email, but emails to group get through...
How to use the processing core library to create a PIMAGE in Java Netbeans?
How to copy a 150 Gb database across the country?
workflow/bpm engine in python
Move jpg files from file server and create shortcut
How do i apply formatting to all hyperlinks in Word 2007?
Remote access VPN via Thompson TG585 v7
LDAP query help
Default alias in Exchange 2010