System.Web.UI.WebControls.ObjectDataSource.ConvertNullToDBNull Property

Gets or sets a value indicating whether the System.Web.UI.WebControls.Parameter values that are passed to an update, insert, or delete operation are automatically converted from null to the DBNull.Value value by the System.Web.UI.WebControls.ObjectDataSource control.

Syntax

[System.ComponentModel.DefaultValue(false)]
public bool ConvertNullToDBNull { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Not converting null to the DBNull.Value value can result in errors at run time. Use the ObjectDataSource.ConvertNullToDBNull property to indicate whether System.Web.UI.WebControls.Parameter values that are passed to an update, insert, or delete operation are automatically converted from null to the DBNull.Value value by the System.Web.UI.WebControls.ObjectDataSource control.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0