I
iulius
Hello,
I get the follwing exception when I'm trying to read data from
SqlDataReader object using GetString(0)
method:System.InvalidCastException: Specified cast is not valid. at
System.Data.SqlClient.SqlDataReader.GetSqlString(Int32 i)!!
If I replace 0 with other index (e.g 1) it's working !!! Why ?
I get the follwing exception when I'm trying to read data from
SqlDataReader object using GetString(0)
method:System.InvalidCastException: Specified cast is not valid. at
System.Data.SqlClient.SqlDataReader.GetSqlString(Int32 i)!!
If I replace 0 with other index (e.g 1) it's working !!! Why ?