Alternatively, you can check for a null value in your Code behind file:
If dr(dc.ColumnName) is DbNull.Value Then
Not sure if it will work like this because I don't know what dr and dc are, but generally comparing against DbNull.Value will do the trick.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|