Does anoyone know how to remove the trailing zeros from a currency formated string:
for example in the showad.aspx.c there is a line which show the price of an item using this code:
AdPriceLabel.Text = String.Format("{0:c}", ad.Price);
if the value on the database table is 5 then it is diaplyed on the web page as:
$5.00
All the numbers in my datbase are whole numbers (no decimal places).