Solved

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

Posted on 2006-06-25
2
1,363 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 50 total points
Comment Utility
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
Comment Utility
Ta!
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

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…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now