I am not able to find what is wrong with my syntax:
SqlConnection conn = new SqlConnection(connstr);
conn.Open();
SqlCommand cmd = new SqlCommand("INSERT INTO [dbo].[Labeler_Email_For_Confirmation_Agents] (Id, Response) VALUES (" + TempData["id"] + " , " + Correctornot + ");");
cmd.CommandType = System.Data.CommandType.Text;
cmd.Connection = conn;
cmd.ExecuteReader();
I don't understand - what is my syntax error? connstr
is my connection string and Correctornot
is the value received from button , i.e button value