G
Guest
Hi, i'm searching for a way to print a price in a template and when the price
is 0 not to print a price. I think i could do it with a formatstring or with
a condition in the template. But i can't find a way. Can anybody send me a
sample of the syntax?
This is what i try, it works fine with a decimal but how it looks for a
currency value({0:c} :
<%# String.Format("{0:#0;(#0);<zero>}", DataBinder.Eval Container.DataItem,
"GOUnitCost")) %>
is 0 not to print a price. I think i could do it with a formatstring or with
a condition in the template. But i can't find a way. Can anybody send me a
sample of the syntax?
This is what i try, it works fine with a decimal but how it looks for a
currency value({0:c} :
<%# String.Format("{0:#0;(#0);<zero>}", DataBinder.Eval Container.DataItem,
"GOUnitCost")) %>