skip to Main Content

'Incorrect syntax near '.'.' – Asp.net

TextBox txtStatus = GridView1.Rows[e.RowIndex].FindControl("TextBox6") as TextBox; string strcn = ConfigurationManager.ConnectionStrings["dbconnection"].ConnectionString; SqlConnection con = new SqlConnection( strcn); con.Open(); SqlCommand cmd = new SqlCommand("update Associate_Table set [Status] = @Status where [Associate ID] =+Convert.ToInt32(id.Text)", con); cmd.Parameters.AddWithValue("@Status", txtStatus.Text); int i = cmd.ExecuteNonQuery(); con.Close(); plz…

VIEW QUESTION
Back To Top
Search