Checking NULL value in VB.NET
Category:C#, VB.NET, ASP.NET
Version Compatibility: Visual Basic.NET
Check for DBNull in VB.NET, with optional specification of type, so it converts null to the appropriate value (e.g., "" for string, 0 for numbers).
Instructions: Copy the declarations and code below and paste directly into your VB project.