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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Currency formatting [modified]

Currency formatting [modified]

Scheduled Pinned Locked Moved C#
csharpasp-nethelptutorial
5 Posts 2 Posters 1 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
    sajitk20
    wrote on last edited by
    #1

    Dear All, I am making a project using ASP.Net and C#. I have a text box where i enter the amount. What i want is that when the user goes to the next field, i want the amount to the formatted in the following way: For example, if the entered amount is 100000; i want it to be formatted as Rs. 1,00,000.00 This Rs. is for Indian Rupees. This can be US Dollors or Euro also. Request your help please. Thanks Sajit

    modified on Wednesday, November 11, 2009 4:14 AM

    L 1 Reply Last reply
    0
    • S sajitk20

      Dear All, I am making a project using ASP.Net and C#. I have a text box where i enter the amount. What i want is that when the user goes to the next field, i want the amount to the formatted in the following way: For example, if the entered amount is 100000; i want it to be formatted as Rs. 1,00,000.00 This Rs. is for Indian Rupees. This can be US Dollors or Euro also. Request your help please. Thanks Sajit

      modified on Wednesday, November 11, 2009 4:14 AM

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      How about asking in ASP.NET. In WinForm you can use MaskedTextBox for that. http://msdn.microsoft.com/en-us/library/system.windows.forms.maskedtextbox.aspx[^]

      S 1 Reply Last reply
      0
      • L Lost User

        How about asking in ASP.NET. In WinForm you can use MaskedTextBox for that. http://msdn.microsoft.com/en-us/library/system.windows.forms.maskedtextbox.aspx[^]

        S Offline
        S Offline
        sajitk20
        wrote on last edited by
        #3

        Is there any other method of doing this....... please advise Thanks / Sajit

        L 1 Reply Last reply
        0
        • S sajitk20

          Is there any other method of doing this....... please advise Thanks / Sajit

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Yes, write your own MaskedTextBox.

          S 1 Reply Last reply
          0
          • L Lost User

            Yes, write your own MaskedTextBox.

            S Offline
            S Offline
            sajitk20
            wrote on last edited by
            #5

            I have never created a masked text box. Can you help me in creatng it for this purpose. This is a web application. It would be great if help is provided. Thanks / Sajit

            modified on Wednesday, November 11, 2009 6:00 AM

            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