Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking for DBNull in DataTable
Message
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
00887448
Message ID:
00887622
Views:
5
I'm already using the code that you suggested, if you look at my trap code I am using:-

if row(col).GetType().ToString = "System.DBNull"

as suggested

But this still doesn't seem to be the right solution, what about trapping for 'byte[]' where a system SQL datestamp is returned.

Can I not test the object value with a system object directly to see if they compare?
John T Barton
A single picture (or bit of code) is worth a thousand words
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform