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
Jaffer Sadiq
NA
155
69k
How to display decimal value(money) format in mvc.
Oct 31 2018 8:42 AM
Hi,
I need to display decimal with seperated commas. please some one suggest. I can mange with string and int. But bit confusing in decimal
eg : 2348 = 2,2348.00
CS file :
public decimal TotalAmount{get;set;}
Controller.cs
:
decimal Tamount;
TAmount = Convert.ToDecimal(TotalAmount);
TotalAmount= Convert.ToDecimal(TAmount).ToString("#,##0.000") // its throwing error and accept only for string
TotalAmount = ??????? What it should be??
It would be higly appreciated. if someone helps
Reply
Answers (
3
)
Integrating Bio metric device with Web App C# Asp.net
How to import Data into Excel sheet i try my self but ..