Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8787269
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:50:59+00:00 2026-06-13T21:50:59+00:00

This should be simple but I cannot find the answer anywhere. On our asp.net

  • 0

This should be simple but I cannot find the answer anywhere.
On our asp.net MVC site, we show currency values and I need these currency values to Always be in USD regardless of the users culture settings.

If I use string.format(“{0:C}”,value) then it shows the value in what ever culture the use has set.
This is incorrect for us as $1000.00 is not the same thing as 1000.00 euro

I still need to use the language side of this, meaning if they are in France I want to use the French localization resource, so I don’t want to completely disregard their culture settings, but how can I make sure the currency is always shown in USD?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T21:51:01+00:00Added an answer on June 13, 2026 at 9:51 pm

    You would have to specify CurrentCulture to be en-US and leave CurrentUICulture as is.

    I usually do this in global.asax.cs in the Application_BeginRequest event

    System.Threading.Thread.CurrentThread.CurrentCulture = 
         new System.Globalization.CultureInfo("en-US", false);
    

    It is possible to specify the culture in web.config file but that has one drawback – it takes into account the customized regional settings of the server (if the administrator changed the currency or date format on the server for the en-US culture, it would get picked up this way) – so you can’t ever be sure that the application will behave exactly the same as when you created/tested it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok. This one should be simple but I cannot find the answer. This answer
This is probably very simple, but I simply cannot find the answer myself :(
This should be very simple, but I cannot find the correct syntax using search.
This should be painfully simple, but I cannot come up with a working connection
This should be simple task but i am not been able to find the
This should be simple, but the answer is eluding me. If I've got a
I have a very simple question but cannot find a simple answer. I have
All, This is probably very basic, but I cannot find an answer that works
This seems like a simple question, but I have googled it and cannot find
I'm sure this is simple, but I cannot find a solution ... I would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.