Hi guys, I need a quick help. I´m trying to insert a int value but, comething went wrong ... I´m receiving this message:
System.Data.SqlClient.SqlException: Conversion failed when converting the varchar value '@id_categoria' to data type int.
Code goes above:
Many thanks.
Simple insert problem, C# + SQL
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Niradhip ChakrabortyRank #429 · 5.8K reputationPosted Aug 12, 2008, 3:10 PM EDT
Please convert the id_categoria.Text.ToString() to
Convert.ToInt32( id_categoria.Text);
edu de souza15 reputationPosted Aug 13, 2008, 6:45 AM EDT
edu de souza15 reputationPosted Aug 13, 2008, 6:45 AM EDT
edu de souza15 reputationPosted Aug 13, 2008, 6:45 AM EDT