This topic is locked

How to change cell background color

7/16/2007 3:44:37 PM
ASPRunnerPro Tips and tricks
admin

Set View as type of this field to Custom and use the following code:
str = "<table width=100% bgcolor="

if strValue= "OPEN" then

str = str & "red"

else

str = str & "blue"

end if

str = str & "><tr><td>" & strValue & "</td></tr></table>"

strValue = str
In this example background color is set to red if field value is OPEN and to blue in other case.