Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > format a databound label

Reply
Thread Tools

format a databound label

 
 
=?Utf-8?B?cm9kY2hhcg==?=
Guest
Posts: n/a
 
      05-08-2006
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
 
Reply With Quote
 
 
 
 
Jimmy
Guest
Posts: n/a
 
      05-08-2006
Hi,

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

Achintya

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Format databound label? Andy ASP .Net 0 07-15-2009 02:29 AM
databound custom controls vs composite databound custom controls rodchar ASP .Net 0 11-26-2007 03:51 PM
templated databound control problem - not showing databound Manu ASP .Net Web Controls 0 05-22-2006 09:46 AM
Can't format a databound date cmay ASP .Net 2 03-07-2006 12:22 AM
How to format databound by DataList Control ? bienwell ASP .Net 8 03-21-2005 03:22 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57