TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Guest User
Tech Writer
357
120.5k
Eval method
May 23 2012 3:49 AM
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!
Reply
Answers (
3
)
How to enable previous dates from today date in ajax calendar extender
Convert C# Struct To Java Using CodePorting Engine