all groups > dotnet general > december 2003 >
You're in the

dotnet general

group:

Dollars to Pounds


Dollars to Pounds Calvin
12/12/2003 7:38:59 PM
dotnet general:
Hi,

I'm developing an eCommerce site and need to change the
currency displayed from Dollars to Pounds.

SqlServer field is set to Money.

Then on Product List page, following code is used...

"<span class="ProductListItem">
<b>Price: </b>
<%# DataBinder.Eval
(Container.DataItem, "UnitCost", "{0:c}") %>
</span>"

"{0:c}" being the relevent point of contention,

Re: Dollars to Pounds Antebios
12/14/2003 4:58:35 AM
Looks like you are going to need to find a web service somewhere that
has the latest conversions to do this with up to date exchange rates.



On Fri, 12 Dec 2003 19:38:59 -0800, "Calvin"
[quoted text, click to view]
Re: Dollars to Pounds clintonG
12/15/2003 8:18:06 PM
You want to know how to manage 'format specifiers' right?
All your concerned with is the currency symbol and not the
conversion of the value from one currency to another?

Check this out. If it doesn't answer your question directly it certainly
contains enough keywords for additional research...

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconformattingnumericdataforspecificculture.asp


--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@REMOVETHISTEXTmetromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/




[quoted text, click to view]

AddThis Social Bookmark Button