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.