ImageField.ConvertEmptyStringToNull Property

Definition

Gets or sets a value indicating whether empty string ("") values are converted to null when the field values are returned from the data source.

C#
public virtual bool ConvertEmptyStringToNull { get; set; }

Property Value

true if Empty values should be converted to null; otherwise, false. The default is true.

Remarks

Sometimes the user may enter an empty string for a field value when updating or inserting records. Use the ConvertEmptyStringToNull property to specify whether an empty string value is automatically converted to null when the data field is updated in the data source

Napomena

The ImageField class displays null as empty strings by default. To display a different value, set the NullDisplayText property.

Applies to

Proizvod Verzije
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1