Getting error:
Failed to convert parameter value from string to a Int32
I write that code for my form and at finally when run the co
You are setting int parameter with strings like in:
comm.Parameters.Add(new SqlParameter("@cod", SqlDbType.Int) { Value = T4.Text });
You should parse the value in all these lines that are integers with something like:
comm.Parameters.Add(new SqlParameter("@cod", SqlDbType.Int) { Value = int.Parse(T4.Text) });