Forums

ASP

This topic is locked

Formatting Values

Posted 12 Jun 2006 18:02:43
1
has voted
12 Jun 2006 18:02:43 andrea tierney posted:
hello all,

I am new to formatting values.

could you please advise me how i can "conditional format" the return of

<%=(PalletsReceived.Fields.Item("Best_Hour".Value)%>

the value is numerical and i would like it to be red text if lower than 250 and black text if higher.

Also is it possible to change

<%=(PalletsReceived.Fields.Item("Best_hour_When".Value)%>

value returns in the format of a date & Time IE: 06/01/2006 06:00:00

if the date is not older than 5 days is it possible to colour the text red and if older than 5 day to colour it black

any help would be appreciated.

I am using dreamweaver MX 2004.

Replies

Replied 11 Jul 2006 17:26:58
11 Jul 2006 17:26:58 Wayne Hultum replied:
<pre id=code><font face=courier size=2 id=code> &lt;%
if PalletsReceived.Fields.Item("Best_Hour".Value) &lt; 250 then
%&gt;
red here
&lt;% else %&gt;
black here
&lt;%end if%&gt;</font id=code></pre id=code>

Replied 12 Jul 2006 13:01:43
12 Jul 2006 13:01:43 andrea tierney replied:
didnt work, thanks though, i just get Page Cannot Be found after "PUT" and "Preview in IE"


any further ideas would be appreciated.

Reply to this topic