Hi All,
i have senario to display oracle database values in the web form ... so i have done this in c# but we need it in VB.Net i used code converter to convert aspx.cs code into vb.net..
but on if condition i used != operator in c# but in VB.Net it's gives error after converting..
The C# code line is::
while (dr.Read())
{
if (dr["EMPLOOYID"] != DBNull.Value)
{
TxtbxEmployee.Text = (string)dr["EMPLOOYID"];
}
}
The VB.Net code line is like this::
While dr.Read()
'If dr("IBANACCOUNT") <> DBNull.Value Then
' IbanAccountTextBox.Text = CType(dr("IBANACCOUNT"), String)
'End If
but in VB.net code line it gives code syntax error using <> operator
The error is :: Operator '<>' is not defined for type 'DBNull' and type 'Integer'.
main problem is i don't know how to use <> operator in the same line of code in the working condition..
please someone help me in this syntax error because in C# it's working fine ...
Thanks