sql - Convert decimal to currency in C# visual studio 2010 -


hi guys have label on website shows price of items on pages. t shirt page displays price t-shirt 55 , want show £55 . label show price in £ currency format. current code below. can please point me in right direction? time...

<asp:label id="label2" runat="server" text='<%# convert.todecimal(eval("price")).tostring("#,##0.00") %>'> 

change format string use c, format string currency value.

<asp:label id="label2" runat="server"      text='<%# convert.todecimal(eval("price")).tostring("c") %>'> 

see msdn more info.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -