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. Label [modified]

Label [modified]

Scheduled Pinned Locked Moved ASP.NET
3 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.
  • B Offline
    B Offline
    banker_kiran
    wrote on last edited by
    #1

    Hi, When i am getting value from data base is 200.00, but when i am displaying it in label then it looks like 200. but i want 200.00 'ItemTemplate amnt = amnt + CDbl(CType(e.Row.FindControl("lblAmount"), Label).Text) 'Footer CType(e.Row.FindControl("lblTotal"), Label).Text = CStr(amnt) -- modified at 1:44 Saturday 6th October, 2007

    kiran banker

    I 2 Replies Last reply
    0
    • B banker_kiran

      Hi, When i am getting value from data base is 200.00, but when i am displaying it in label then it looks like 200. but i want 200.00 'ItemTemplate amnt = amnt + CDbl(CType(e.Row.FindControl("lblAmount"), Label).Text) 'Footer CType(e.Row.FindControl("lblTotal"), Label).Text = CStr(amnt) -- modified at 1:44 Saturday 6th October, 2007

      kiran banker

      I Offline
      I Offline
      Imran Khan Pathan
      wrote on last edited by
      #2

      post your code

      please don't forget to vote on the post that helped you.

      1 Reply Last reply
      0
      • B banker_kiran

        Hi, When i am getting value from data base is 200.00, but when i am displaying it in label then it looks like 200. but i want 200.00 'ItemTemplate amnt = amnt + CDbl(CType(e.Row.FindControl("lblAmount"), Label).Text) 'Footer CType(e.Row.FindControl("lblTotal"), Label).Text = CStr(amnt) -- modified at 1:44 Saturday 6th October, 2007

        kiran banker

        I Offline
        I Offline
        Imran Khan Pathan
        wrote on last edited by
        #3

        banker_kiran wrote:

        CType(e.Row.FindControl("lblTotal"), Label).Text = CStr(amnt)

        try this

        CType(e.Row.FindControl("lblTotal"),Label).Text=String.Format("{0:#.##}",amnt);

        please don't forget to vote on the post that helped you.

        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