Hi
I have the following method in place:-
Eval("UnitCost", "{0}")
This gets a required value from the UnitCost field in the DB.
However the values are showing as 17.00000 etc.
All I want is either the 17 or the 17.00 to show and not all the trailing zeros.
What amendments do I need to make to Eval("UnitCost", "{0}") in order for this to work?
Thanks!
Loading
Ajay PatelPosted May 23, 2012, 8:31 AM
http://ajaypatelfromsanthal.blogspot.in/2012/05/eval-vs-bind-in-net.html
Enjoy.....
SenthilkumarPosted May 23, 2012, 4:21 AM
Guest UserPosted May 23, 2012, 4:13 AM
I used "{0:0.00}" and it works perfect!