For example,
Dim Test as Guid
Test = IIf(IsDBNull(DataReader("ID")), Guid.Empty, DataReader("ID"))
They caused an error - "Unrecognized guid format"
I was trying to do if statement below
If(IsDBull(DataReader("ID")) Then
Test = Guid.Emtpy
Else
Test = DataReader("ID")
End If
It worked for me.
Does 4.0 framework have an issue with IIf method handling empty guid value or non-empty guid value?
logically your codes is same and should work in both way. yes i think its a issue in version 4.0 but you try in this way also