How to convert us currency data to French currency? (fr-FR)

Last post 11-07-2009 2:57 PM by ThotaAshok. 2 replies.

Sort Posts:

  • How to convert us currency data to French currency? (fr-FR)

    11-07-2009, 12:00 PM
    • Member
      6 point Member
    • ThotaAshok
    • Member since 06-26-2002, 4:47 PM
    • Posts 44

     Hi friends,

    I need help with the below problem.  Currently through our old classic asp the "spanish" users are storing the data in the US currency format and while rendering the data will be displayed in US format, but just replacing the symbol $ with €. This is just symbol replacement. Nothing much. Now we are migrating to asp.net (frameworks ==> .net 3.5 framework and asp.net 2.0 framework), where i have to display this US format data in french for the French users. The culture is "fr-FR". Since i am running under French culture ("fr-FR") Thread i am uanble to convert the data coming in US format as a string to decimal format , becuase as i said above the currency is stored in USA format. See sample code below. where "currencyFromDatabase" is the data pulled from database (in US format) 

                Thread.CurrentThread.CurrentCulture=new CultureInfo("fr-FR");
                decimal d = 0.00m;
                double dbl = 0.00;
                string currencyFromDatabase = "23.23";
               //currencyData = currencyData + "M";
     
    How can i do this? Could somebody help me on this.? An early reply is highly appreciated.
    
              


     

    TAK
  • Re: How to convert us currency data to French currency? (fr-FR)

    11-07-2009, 1:01 PM
    Answer
    • Member
      362 point Member
    • leena.d.patil
    • Member since 07-15-2009, 10:31 AM
    • Pune
    • Posts 65

    Hi,

    To convert US currency to French you should use web service. There are everal web services available for currency conversion.

    Please refer below link for more information on currency format-

    http://msdn.microsoft.com/en-us/goglobal/bb688110.aspx

     

    Regards,
    Leena


    Please remember to mark replies as answers if you find them useful.
  • Re: How to convert us currency data to French currency? (fr-FR)

    11-07-2009, 2:57 PM
    • Member
      6 point Member
    • ThotaAshok
    • Member since 06-26-2002, 4:47 PM
    • Posts 44

    Thanks Leena,

     

    I am looking in to it right now. I posted my problem in the below post of asp.net forums. If possible and you encountered something similar could you reply to that post?

     

    http://forums.asp.net/t/1478031.aspx 

     

    Thank You

    TAK

    TAK
Page 1 of 1 (3 items)