Displaying Zeros in Price

Discussion in 'ASP.NET / ASP.NET Core' started by projectzer1, Jun 5, 2003.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I am displaying prices from a database. The datatype of the "Price" field is Currency and in the database it holds the two places to the right of the decimal. My problem is when I display it on my website it drops any zeros to the right. Example: £12.30 on the website looks like £12.3

    The price is held in a datalist, and tag I use is this:

    <%# Container.DataItem( "Price" ) %>

    Any help would be appreciated.

    Thanks in advance


    Paul
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page