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

Suraj KumarRank #353 · 7.1K reputationPosted Oct 31, 2018, 5:05 AM EDT
Jaffer Sadiq160 reputationPosted Oct 31, 2018, 8:24 PM EDT
Suraj KumarRank #353 · 7.1K reputationPosted Oct 31, 2018, 10:04 PM EDT