How can I test to see if an object is System.DBNull? I have an event and
need to get the value from a parameter like this:
Private Sub ValueChanged(ByVal sender As Object, ByVal e As
System.EventArgs)
Try
Dim ID As Int32
'Next line is suto code. it doesnt compile
If sender.Value Is System.DBNull Then
ID = 0
Else
ID = sender.Value
End If
If I put a watch on "sender.Value" its value is {System.DBNull}.
Thanks.
--
mo*******@nospam.com