ASP - Conditional formatting?

Soldato
Joined
4 Nov 2007
Posts
4,514
Morning all.

Just a quick one, can't find much on google and in need of a quick-fix.

How can I make a column in a table on an ASP page go red when the value is less than 6.5?

Here's the asp file - http://rafb.net/p/bzRFdB24.html

I didn't write the page and it's not been annotated so haven't clue where the tables are. Assuming it's just a small bit of code, but don't know where! TIA
 
There's a default.html in there as well. Table code;

Code:
<tr>
    <td class="NoiseDataTD"><font face="Arial Narrow" size="1">{contname}&nbsp;</font></td> 
    <td class="NoiseDataTD"><font face="Arial Narrow" size="1">{subcon}&nbsp;</font></td> 
    <td class="NoiseDataTD"><font face="Arial Narrow" size="1">{service}&nbsp;</font></td> 
    <td class="NoiseDataTD"><font face="Arial Narrow" size="1">{scorea}&nbsp;</font></td> 
    <td class="NoiseDataTD"><font face="Arial Narrow" size="1">{scoreb}&nbsp;</font></td> 
    <td class="NoiseDataTD"><font face="Arial Narrow" size="1">{scorec}&nbsp;</font></td> 
    <td class="NoiseDataTD"><font face="Arial Narrow" size="1">{scored}&nbsp;</font></td> 
    <td class="NoiseDataTD"><font face="Arial Narrow" size="1">{scoree}&nbsp;</font></td> 
    <td class="NoiseDataTD"><font face="Arial Narrow" size="1">{scoref}&nbsp;</font></td> 
    <td class="NoiseDataTD">{average}</td> 
  </tr>
 
It's actually in a web-part in sharepoint.

The web-part is pointing at default.asp, I can alter the format of the text in the html page, so they're linked some-how.

Any way to get that piece of code working by changing the html to an asp page?
 
Can't anyone tell me what language the {scoreb} is in? I've worked with SQl using asp before but have never seen {variable} before, I can atelast have a crack at working with the variable if I knew the language.

<td class="NoiseDataTD"><font face="Arial Narrow" size="1">{scoref}&nbsp;</font></td>

Help!
 
Back
Top Bottom