dimanche 10 mai 2015

ASP.NET MVC - DisplayFormat returns currency based on computer setting

I am using the following line in my model to format value in currency.

However, i found an issue - it returns currency symbol based on computer setting. e.g. in my case it returns $ but person having UK setting returns pound sign

DisplayFormat(DataFormatString = "{0:C0}")

is there any workaround for this? please advise.

Aucun commentaire:

Enregistrer un commentaire