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




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

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

You can help support asp.net.ph