Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ASP.NET/C# 2.0 - Formatting Decimal as Currency dollar/sterling problem... Prob EASY

Posted on 2006-06-25
2
Medium Priority
?
1,371 Views
Last Modified: 2012-05-05
Hi Guys, hopefully a quick and easy one...

tempCell.Text = tempPrice.PriceAmount.ToString( "C" );

On my local machine this prints with £ signs (£53.00), on my hosting account I get $ signs ($53.00)...

I assume my host's server is set to be american-english or something... anyway I can force a pound sign when formatting my string?
0
Comment
Question by:zero303
2 Comments
 
LVL 2

Accepted Solution

by:
JocGaurav earned 200 total points
ID: 16978538
u need to set globalization in web.config

following link will help u
http://www.c-sharpcorner.com/Code/2005/April/GlobalizationusingASP.NET.asp

Gaurav
0
 
LVL 3

Author Comment

by:zero303
ID: 16978584
Ta!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question