Originariamente inviato da Enrique_Rojas
... sarebbe a dire??? :master: se intendi questo non cambia nulla...codice:Dim bg if rs("stato") = sana then bg = "#00FF00" end if if rs("stato") = allerta then bg = "#FF0000" end if if rs("stato") = allarme then bg = "#FFFF00" End ifcodice:Response.Write "<tr>" If (rs("Stato")="libero") then Response.Write "<td bgcolor='#00ff00' style='font-family: Verdana; font-size: 8 pt'; style='border-style: solid; border-width: 1;' align='center'>" & rs("IDCD") & "</td>" end if If (rs("Stato")="occupato") then Response.Write "<td bgcolor='#ff0000' style='font-family: Verdana; font-size: 8 pt'; style='border-style: solid; border-width: 1;' align='center'>" & rs("IDCD") & "</td>" end if If (rs("Stato")="disponibile") then Response.Write "<td bgcolor='#ffff00' style='font-family: Verdana; font-size: 8 pt'; style='border-style: solid; border-width: 1;' align='center'>" & rs("IDCD") & "</td>" end if

Rispondi quotando