in textbox I can't enter the number 0.8 price I tried this attributes, But the same problem and show me a message The value '0.8' is not valid for Price.
[Required]
[Display(Name = "Price")]
[Range(0.002, 9999.99)]
[DataType(DataType.Currency)]
public decimal Price { get; set; }
@Html.EditorFor(model => model.Product, new { htmlAttributes = new { @type = "number" ,@class = "form-control", @min = "0.00" }

Jefferson S. MottaRank #207 · 11.7K reputationPosted Feb 5, 2019, 9:51 AM EST
Jefferson S. MottaRank #207 · 11.7K reputationPosted Feb 4, 2019, 1:37 PM EST
public decimal? Price { get; set; }
Mohamed HM Hadj Mokhtar114 reputationPosted Feb 4, 2019, 11:33 PM EST
Jefferson S. MottaRank #207 · 11.7K reputationPosted Feb 5, 2019, 12:41 AM EST
Mohamed HM Hadj Mokhtar114 reputationPosted Feb 5, 2019, 8:23 AM EST
Mohamed HM Hadj Mokhtar114 reputationPosted Feb 5, 2019, 11:48 AM EST