I'm trying to record on a SQL Server Database a currency value with commas and dots. In this example: 80,55 in the database stays like this: 8055.
Does anyone knows how can I solve this problem?
In c# i'm doing like this:
public decimal ValorPlanoForm { get; set; }
Then like this:
ValorPlanoForm = message.ValorPlanoForm.ToString("G")
I'm using ASP.NET like this:
<div class="col-xs-6 col-sm-6 col-md-2">
<div class="form-group">
<label asp-for="ValorPlanoForm">Valor do plano</label>
<input asp-for="ValorPlanoForm" type="number" class="form-control">
<span asp-validation-for="ValorPlanoForm"></span>
</div>
</div>
Thanks.