Handle Database Null Values in VB.NET/ASP.NET
Category:C#, VB.NET, ASP.NET
Author:Intelligent Solutions Inc.
Version Compatibility: Visual Basic.NET, ASP.NET
Handling null values returned from database resultsets is different in .NET from VB6, and the documentation is not that clear on how to do it. The first of these functions returns true if such a value is null, the second converts the value to an empty string if it is null.
Instructions: Copy the declarations and code below and paste directly into your VB project.