asp.net.ph

BoundField.ConvertEmptyStringToNull Property

System.Web.UI.WebControls Namespace   BoundField Class


Sets or retrieves a value specifying whether empty string values ( "" ) are automatically converted to null values when the data field is updated in the data source.

Syntax


Inline <asp:boundfield convertemptystringtonull [ = true | false ] ... >
Script BoundField.ConvertEmptyStringToNull [ = true | false ]

Property Value

This property accepts or returns only a boolean value: true to automatically convert empty string values to null values; otherwise false. Default value is true.

Remarks

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.

NOTE: By default, a BoundField object displays null values as empty strings. To display a different value, set the NullDisplayText property.

See Also

BoundField Members Skip Navigation Links




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note