The connection was not closed. The connection's current state is open.
Object cannot be cast from DBNull to other types.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Hemant KumarPosted Nov 10, 2013, 12:51 PM
You many be converting the row value which is null or DBNull.You can check if the row is null or not like this
If(Convert.IsDBNull(row("name"))
{
string _name=row("name").ToString();
}
Please debug the code.