I have the following model:
public class Product { [HiddenInput(DisplayValue = false)] public int ProductID { get; set; } [Required(ErrorMessage
And in my case I had to write the [HiddenInput]as [HiddenInput(DisplayValue=false)]
[HiddenInput]
[HiddenInput(DisplayValue=false)]