If a form like the one below is submitted and MyField is left blank on the form, then by default Asp.Net Core model binding will place null into the correspondi
Have you tried making the property have a default value of empty string?
public string MyField { get; set; } = string.Empty;
an uglier solution to try is:
private string myField = string.Empty;
public string MyField
{
get { return myField ?? string.Empty; }
set { myField = value; }
}
I think it should work