hello friends,
pls help me to clear the mistake from this stmt.
when i click on button,the rows availabe in the gridview table should store in mysql DB.
when i click, its shows the error in below line
as:Input string was not in a correct format.
help me out...
<code>
strMySQLcmd = "insert into purchase(pid,ptype,bname,qty,amount,supname)values(" + Convert.ToInt32(purchaserow[0]) + ",'" + purchaserow[1] + "','" + purchaserow[2] + "'," + Convert.ToInt32(purchaserow[3]) + "," + Convert.ToDouble(purchaserow[4]) + ",'" + purchaserow[5] + "')"; </code>