Example:
If ds.Tables(0).Rows(cboProd.SelectedIndex).Item("price") _ Is DBNull.Value Then
lblPrice.Text = "Not Available"
Else
lblPrice.Text = _
ds.Tables(0).Rows(cboProd.SelectedIndex).Item("price")
End If
Keywords:
VB.Net, ADO.Net: How to handle null value in a database
VB.Net Programming, VB.Net Code, VB.Net Help
Exclude Keywords: Finance Investment, Stock Market
0 Comments