M
MattB
Hello. I have a vb.net (asp.net) application that uses ado.net datasets.
At one point, I need to check a text field in a DataTable to see if there's
any text in it before performing text operations on that record. I thought I
could just test using something like this:
If Not IsNothing(e.Item.DataItem("guest_name")) Then
....
End If
But it seems a value of DBNull passes this test and evaluates as not
nothing. What would be a better test at this point to see if there's
anything in this field? Thanks!
Matt
At one point, I need to check a text field in a DataTable to see if there's
any text in it before performing text operations on that record. I thought I
could just test using something like this:
If Not IsNothing(e.Item.DataItem("guest_name")) Then
....
End If
But it seems a value of DBNull passes this test and evaluates as not
nothing. What would be a better test at this point to see if there's
anything in this field? Thanks!
Matt