Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Currency format

Currency format

Scheduled Pinned Locked Moved ASP.NET
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SUDHAKAR PALLAM
    wrote on last edited by
    #1

    Hi, I want to convert a particular integer value into indian currency format. I am using this particular code, but it is resulting in dollars. I want the output in rupees format. int price = String.Format("{0:C}",1234567); Thank you

    M 1 Reply Last reply
    0
    • S SUDHAKAR PALLAM

      Hi, I want to convert a particular integer value into indian currency format. I am using this particular code, but it is resulting in dollars. I want the output in rupees format. int price = String.Format("{0:C}",1234567); Thank you

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #2

      I think you should set the culture as hindi (or your culture) before calling this line.

      Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

      S 1 Reply Last reply
      0
      • M Michael Sync

        I think you should set the culture as hindi (or your culture) before calling this line.

        Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

        S Offline
        S Offline
        SUDHAKAR PALLAM
        wrote on last edited by
        #3

        But Hindi or india is not available in regional settings Any code from aspx page to do that.?

        M 1 Reply Last reply
        0
        • S SUDHAKAR PALLAM

          But Hindi or india is not available in regional settings Any code from aspx page to do that.?

          M Offline
          M Offline
          Michael Sync
          wrote on last edited by
          #4

          SUDHAKAR PALLAM wrote:

          But Hindi or india is not available in regional settings

          No. You can add this language in Regional Settings. Ref : http://mastercsharp.com/article.aspx?ArticleID=79&TopicID=3[^] http://in.hindi.yahoo.com/FAQ_English.htm#Enable_Indic_for_Windows_XP_&_above[^] Actually, you don't need to change this in Regional setting. You can set this culture in ASP.NET at runtime.. You can read the link below if you want to know about how to change the culture in ASP.NET. http://msdn2.microsoft.com/en-us/library/bz9tc508.aspx[^]

          Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups