G
Guest
I retrieve data from sql dbo and place within a dataset datatable using a
simple select statement. One of the fields is nullable and the data returned
may be null. When I use IsDBNull(dr.("fieldname")), the check fails because
the actual contents are the characters "<NULL>". I can check the string value
for "<NULL>" and find it, but I cannot use IsDBNull, dr.IsNull("fieldname"),
or = System.DBNull.Value. Why is the null value being treated as a string and
filled in with the "<NULL>"?
simple select statement. One of the fields is nullable and the data returned
may be null. When I use IsDBNull(dr.("fieldname")), the check fails because
the actual contents are the characters "<NULL>". I can check the string value
for "<NULL>" and find it, but I cannot use IsDBNull, dr.IsNull("fieldname"),
or = System.DBNull.Value. Why is the null value being treated as a string and
filled in with the "<NULL>"?