locked
Currency and converting RRS feed

  • Question

  • User-1327394822 posted

    "WebMatrix WebPages"

    I would Like to integrate my website with multiple currency options like drop down to change currency and currency symbol next to amounts.

    Any help reg integration.

    Note: getting currency exchange rate is not a requirement. Present I a using this: 

    @using System.Globalization;
    @{
      CultureInfo cultureInfo = new CultureInfo("en-IN");
    }
    <h4>@string.Format(cultureInfo, "{0:c}", cartTotal)</h4>

    1) I would like to add a drop down with multiple currencies and on select, the "cartTotal" must change along with the currency format.

    2) any other solution is ok

    Wednesday, April 13, 2016 9:25 PM

Answers

  • User-2057865890 posted

    Hi Gautam,

    First, populate the drop down with multiple currencies.

    Second, use a jQuery onChange event on your drop down, pass currency symbol to the action, based on the currency symbol change the "cartToal", return the amounts and symbol.

    Best Regards,

    Chris Zhao

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, April 18, 2016 3:30 PM