Change Cell Colour Based On Field Data (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


martinchisholm -> Change Cell Colour Based On Field Data (3/4/2001 13:44:00)

Hi, I have the hexadecimal code for a boackground colour stored in a field, is there anyway to tell FP to make this the backgroung for the cell ?




Guest -> RE: Change Cell Colour Based On Field Data (3/4/2001 15:48:00)

Sure. You could use something like this. Just replace yourrecordset and yourfieldname with the actual names.

bgcolor=<%=yourrecordset.fields.getvalue("yourfieldname")%>

EE





martinchisholm -> RE: Change Cell Colour Based On Field Data (3/5/2001 20:50:00)

THAT'S GREAT, THANKS




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.078125