468,161 Members | 1,952 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,161 developers. It's quick & easy.

Dollars to Pounds

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...
Jul 21 '05 #1
2 1799
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"
<an*******@discussions.microsoft.com> wrote:
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...


Jul 21 '05 #2
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/de...ficculture.asp
--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET cs*********@REMOVETHISTEXTmetromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/


"Calvin" <an*******@discussions.microsoft.com> wrote in message
news:03****************************@phx.gbl...
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...

Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by nyy | last post: by
2 posts views Thread by Calvin | last post: by
1 post views Thread by kritter | last post: by
3 posts views Thread by mochatrpl | last post: by
7 posts views Thread by Paro | last post: by
reply views Thread by abcd | last post: by
1 post views Thread by gcdp | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.