Hi
On the line i am getting above error. Value in excel sheet is 8.4. Datatype is int. I want to ignore decimal value
leadHeader.ChildAge = Convert.ToInt32(colum[13].ToString());
Thanks
Hi
On the line i am getting above error. Value in excel sheet is 8.4. Datatype is int. I want to ignore decimal value
leadHeader.ChildAge = Convert.ToInt32(colum[13].ToString());
Thanks
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.
Jignesh KumarPosted Apr 9, 2023, 4:42 AM
Can you please check colum[13]?
what values you are getting int colum[13].
If you are getting 8.4 in colum[13], then above code is correct only and it will return 8.