format a databound label

Discussion in 'ASP .Net' started by =?Utf-8?B?cm9kY2hhcg==?=, May 8, 2006.

  1. hey all,

    i have a label inside an item template of a datalist control. the datasource
    field type is money. well, when i databind the money field to the label.text
    it show a precision of 4. what's the best way to make that a precision of 2?

    thanks,
    rodchar
     
    =?Utf-8?B?cm9kY2hhcg==?=, May 8, 2006
    #1
    1. Advertising

  2. =?Utf-8?B?cm9kY2hhcg==?=

    Jimmy Guest

    Hi,

    Do it in ur server side code.....not in the formatting of the label

    Achintya
     
    Jimmy, May 8, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. bienwell
    Replies:
    8
    Views:
    4,591
    bienwell
    Mar 21, 2005
  2. rodchar
    Replies:
    0
    Views:
    407
    rodchar
    Nov 26, 2007
  3. Andy

    Format databound label?

    Andy, Jul 15, 2009, in forum: ASP .Net
    Replies:
    0
    Views:
    554
  4. Manu
    Replies:
    0
    Views:
    186
  5. Knut Krueger
    Replies:
    8
    Views:
    324
    Knut Krueger
    Aug 20, 2013
Loading...

Share This Page