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. How to implement Thosand seperator in asp.net [modified]

How to implement Thosand seperator in asp.net [modified]

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelptutorial
8 Posts 5 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
    Sudip6789
    wrote on last edited by
    #1

    i have an asp.net bound column. this column gets it values from the dataset. the values displayed are displayed as 123456. i want it to be displayed as 1,23,456. i tried using dataformatstring="{0:n}, but is of no use. please help. -- modified at 4:08 Monday 13th November, 2006

    D J 2 Replies Last reply
    0
    • S Sudip6789

      i have an asp.net bound column. this column gets it values from the dataset. the values displayed are displayed as 123456. i want it to be displayed as 1,23,456. i tried using dataformatstring="{0:n}, but is of no use. please help. -- modified at 4:08 Monday 13th November, 2006

      D Offline
      D Offline
      danidanidani
      wrote on last edited by
      #2

      You should use the DataFormatString property to format the data as you wish. In your case it would be something like: {0:#,###}

      Cheers, Dani

      S 1 Reply Last reply
      0
      • S Sudip6789

        i have an asp.net bound column. this column gets it values from the dataset. the values displayed are displayed as 123456. i want it to be displayed as 1,23,456. i tried using dataformatstring="{0:n}, but is of no use. please help. -- modified at 4:08 Monday 13th November, 2006

        J Offline
        J Offline
        just3ala2
        wrote on last edited by
        #3

        use the FormatNumber function

        Best Regards 3ala2 :)

        1 Reply Last reply
        0
        • D danidanidani

          You should use the DataFormatString property to format the data as you wish. In your case it would be something like: {0:#,###}

          Cheers, Dani

          S Offline
          S Offline
          Sudip6789
          wrote on last edited by
          #4

          it does not work. the numbers still show up without any formatting :(

          D _ R 3 Replies Last reply
          0
          • S Sudip6789

            it does not work. the numbers still show up without any formatting :(

            D Offline
            D Offline
            danidanidani
            wrote on last edited by
            #5

            can you post some code?

            Cheers, Dani

            S 1 Reply Last reply
            0
            • S Sudip6789

              it does not work. the numbers still show up without any formatting :(

              _ Offline
              _ Offline
              _AK_
              wrote on last edited by
              #6

              You can take help of this.[^]

              Best Regards, Apurva Kaushal

              1 Reply Last reply
              0
              • D danidanidani

                can you post some code?

                Cheers, Dani

                S Offline
                S Offline
                Sudip6789
                wrote on last edited by
                #7
                1 Reply Last reply
                0
                • S Sudip6789

                  it does not work. the numbers still show up without any formatting :(

                  R Offline
                  R Offline
                  RichardGrimmer
                  wrote on last edited by
                  #8

                  Try adding an HTMLEncode="false" to the same line...

                  "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox

                  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