Problem with DataAnnotation (DataFormatString)

0

I have a problem, in the visualization I am shown the data with the Euro symbol

  

€ 123.00

and I need it to be displayed with the weights sign $

  

$ 123.00

My code is as follows

[Display(Name = "Salario Cargo")]
[DisplayFormat(DataFormatString = "{0:C2}", ApplyFormatInEditMode = false)]
public decimal salario_cargo { get; set; }
    
asked by ByGroxD 03.04.2017 в 20:42
source

1 answer

2

In your web.config

<system.web>
    ...
    <globalization culture="en-US" uiCulture="en-US"/>
    ...
</system.web>
    
answered by 03.04.2017 / 21:44
source