Displaying the unitPrice in EURO!

Last post 10-23-2005 11:39 AM by Newbie2005. 2 replies.

Sort Posts:

  • Displaying the unitPrice in EURO!

    10-22-2005, 12:41 PM
    • Member
      130 point Member
    • Newbie2005
    • Member since 10-17-2005, 11:16 PM
    • Posts 26
    Hi,

    <%# DataBinder.Eval(Container.DataItem, "Price", "{0:c}") %>


    Above code displays the Unit in $. I need to dispay it in EURO...I know i have to modify {0:c} but dont know what to replace it with.
    Also, do I have to enable any settigs in page.

    Thanks
  • Re: Displaying the unitPrice in EURO!

    10-22-2005, 3:17 PM
    • Participant
      1,454 point Participant
    • WilcoB
    • Member since 03-02-2003, 1:02 PM
    • Posts 290
    You probably want to change the culture instead. You can do this by modifying the <globalization> tag in your web.config (look at the culture/uiCulture attributes) to do this at site-level. Alternatively, you could set some page directive as well to control this on a per-page basis.
    - Wilco Bauwer (MSFT) / http://www.wilcob.com
  • Re: Displaying the unitPrice in EURO!

    10-23-2005, 11:39 AM
    • Member
      130 point Member
    • Newbie2005
    • Member since 10-17-2005, 11:16 PM
    • Posts 26
    thanks. I reaolved it.
Page 1 of 1 (3 items)