hi all ,
i am getting error when i am converting dbnull value to integer value .
please help me how to solve this type of error
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.
Puneet KankarPosted Jul 21, 2017, 7:36 AM
int y = (!reader["PublicationYear"] is DBNull) ? Convert.ToInt32(reader["PublicationYear"]) : 0;Rafnas T PPosted Jul 21, 2017, 7:05 AM
RahulPosted Jul 21, 2017, 4:13 AM