|
-
Oct 20th, 2012, 08:39 PM
#3
Re: table null value error
If the data came from a database then each null field contains a DBNull object. If all you're doing is displaying the value then you can just call ToString, because DBNull.ToString will yield an empty string, which is appropriate to display for NULL. If you actually want to distinguish between NULL and an actual empty string then you'll need to test whether the value 'Is DBNull.Value' first.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|