add color style to value based on condition
- by rod
Hi All,
How do I conditionally add the style 'color:red' to the .CurrentDifference if the value happens to be a negative value?
Thanks,
rod.
<div class="sRow">
<div class="sLabel p40">
Difference:
</div>
<%= (!String.IsNullOrEmpty(Model.Amount)?Model.Amount.CurrentDifference.ToString("c"):string.Empty) %>
</div>