Here is my DiscountRate variable in my model.
public decimal DiscountRate { get; set; }
Here is my input in view.
@Html.TextBoxFor(x=>x.DiscountRate, new { @class = "form-control", @type = "number", step = "0.01", @placeholder = "0.00", @min="0", @max="100" })
The problem is when I enter a value (2,50 or 2.50 etc.) I catch it in my Controller like 250. What is the problem here?
<input>element in the UI? In those same browser debugging tools, on the network tab, when the form is submitted to the server, what data does that request to the server contain? Is the value there correct? In the controller action receiving the request, what is that exact action and what is the exact model being supplied to that action?