E
Earl
In VB.Net, I often check for a null in a dataview column before assigning a
value from that column to a variable:
If Not IsDBNull(dvContacts.Item(0).Item("LastName")) Then
strLastName = CStr(dvContacts.Item(0).Item("LastName"))
Else
strLastName = ""
End If
But I have not figured out how to make the same IsDbNull check in C#.
value from that column to a variable:
If Not IsDBNull(dvContacts.Item(0).Item("LastName")) Then
strLastName = CStr(dvContacts.Item(0).Item("LastName"))
Else
strLastName = ""
End If
But I have not figured out how to make the same IsDbNull check in C#.