Required field validator still firing even after removing from Model & Controller
Required field validator still firing even after removing from Model & Controller I am getting error regarding required field validator, two field on my razor page & it should not be required. So I removed the [Required] validation attribute for but still I am getting a message after submit that these fields are required. [Required] Below is my model properties. public decimal Longitude { get; set; } decimal Latitude { get; set; } & this is razor. @Html.TextBoxFor(model => model.Longitude, new { @class = "form-control") @Html.TextBoxFor(model => model.Latitude, new { @class = "form-control" }) A decimal can never be null - its must have a value. if you want to allow null , then make the nullable – Stephen Muecke Jun 30 at 7:28 decimal null null make both the attributes nul...