Checking NULL value in VB.NET

Category:
C#, VB.NET, ASP.NET
Type:
Snippets
Difficulty:
Beginning
Author:
Rafiq

Version Compatibility: Visual Basic.NET

More information:
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.

Declarations:

Code: