473,396 Members | 1,827 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 2120
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bill | last post by:
I have some variables that are supposed to display in dollars. While the value of the variable may be an interger, such as 1290 I would like it to display as $ 1,290.00 with the dollar sign, and...
6
by: nyy | last post by:
I need help on this program, it have to convert cents to dollars when you enter #of cents. Thanks please anybody can help. Thanks.
3
by: nyy | last post by:
this program is supposed to give the user the ability to enter numbers in cents and tell you how many dollars you have. PLease anybody can tell me what's wrong. Thx. <!DOCTYPE html PUBLIC...
2
by: Calvin | last post by:
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......
1
by: kritter | last post by:
-------------------------------------------------------------------------------- Hi, I have another focus group. This one is for females only. Can not work for an advertising agency,...
1
by: GinnyP | last post by:
Hi, Is there a way to convet $9.05, as entered, to "nine dollars and five cents" to print out on a check. Thanks GinnyP
3
by: mochatrpl | last post by:
I am looking for a way to make a query / report display the running average for total dollars. I have already set up a query to provide totals dollars per day from which a report graphly shows...
7
by: Paro | last post by:
If any body knows there is part time c language jobs here http://zubair.jhara.googlepages.com/jobs.html
0
by: abcd | last post by:
http://www.parttimejobsu.blogspot.com/
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.