Dollars to Pounds

  • Thread starter Thread starter Calvin
  • Start date Start date
C

Calvin

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,

What can I do? Many Thanks...
 
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.
 
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/d...onformattingnumericdataforspecificculture.asp


--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET (e-mail address removed)
URL http://www.metromilwaukee.com/clintongallagher/
 
Back
Top