Forums

ASP

This topic is locked

Color Coding based on Variable

Posted 30 Nov 2007 20:55:35
1
has voted
30 Nov 2007 20:55:35 Pam Grimes posted:
Create styles for the color lines. Then use an If statement to assign the appropriate style, based on status.

<% Dim ProjStat
ProjStat = (st.Fields.Item("Status".Value) %>
<% If ProjStat = "Waiting" THEN %>
<tr class="waiting">
<% END IF %>

<% If ProjStat = "Complete" THEN %>
<tr class="complete">
<% END IF %>

Sorry... meant to post as a response to a question.

Edited by - diverpam on 30 Nov 2007 20:56:59

Reply to this topic