CurrencyCode instead of CurrencySymbol RRS feed

  • Question

  • User619896581 posted


    Im configuring my application for globalization and Im letting my users select what culture they want to use in the application. When I show currency in my grids and on my pages Im using the standard format String "{0:C}" to convert my decimals into currency. I was wondering if there is a setting somewhere I can turn on so that instead of asp.net displaying a currency symbol like $10.56 it will display currency using the currency code like 10.56 USD.

    I know that I can get this using Culture and doing it manually but I was just wondering if I could just set a value in one spot and it would automatically do this for me everywhere Im using the "{0:C"}" syntax for the entire application.

    Thanks in advance.

    Monday, June 1, 2009 9:24 PM