ModelMetadata.ConvertEmptyStringToNull Property
Gets or sets a value that indicates whether empty strings that are posted back in forms should be converted to a null reference (Nothing in Visual Basic).
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
abstract ConvertEmptyStringToNull : bool with get, set override ConvertEmptyStringToNull : bool with get, set
Property Value
Type: System.Booleantrue if empty strings that are posted back in forms should be converted to a null reference (Nothing in Visual Basic); otherwise, false. The default value is true.
Show: