J
John
Hi
I am trying to see if column forenames is empty/blank in a row in a
datatable. I am using the following statement to achieve that;
If (mydatatable.Rows.Item(0).Item("Forenames") =
System.DBNull.Value.ToString) Then
I am getting the 'Operator is not valid for type 'DBNull' and string "".'
error on the above line. What am I doing wrong?
Thanks
Regards
I am trying to see if column forenames is empty/blank in a row in a
datatable. I am using the following statement to achieve that;
If (mydatatable.Rows.Item(0).Item("Forenames") =
System.DBNull.Value.ToString) Then
I am getting the 'Operator is not valid for type 'DBNull' and string "".'
error on the above line. What am I doing wrong?
Thanks
Regards