if(ds.Tables[1].Rows[0]["total"] == 0) check synrax
it cause the 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.
Pankaj PandeyPosted Jul 19, 2013, 8:00 AM
Iftikar HussainPosted Jul 19, 2013, 6:56 AM
Try like this
Regards,
Iftikar
Sanjeeb LenkaPosted Jul 19, 2013, 6:43 AM
if(ds.Tables[1].Rows[0]["total"].ToString() == "0")
or
please give details of your requirement . what you need in this line
Vishwas KadamannayaPosted Jul 19, 2013, 6:30 AM
if(ds.Tables[1].Rows[0]["total"].ToString() == "0")
or
if(int.parse(ds.Tables[1].Rows[0]["total"].ToString()) == 0)