Sample Header Ad - 728x90

I am getting this error : "Error 102 : non-boolean type specified in a context where a condition is expected" for this request :

0 votes
1 answer
1020 views
private void button2_Click(object sender, EventArgs e) { con.Open(); SqlCommand cmd = con.CreateCommand(); cmd.CommandType = CommandType.Text; cmd.CommandText = "delete from MYDB where First name='" + first.Text + "'"; cmd.ExecuteNonQuery(); con.Close(); disp_data(); MessageBox.Show("Contact deleted successfully"); }
Asked by manbb (1 rep)
Jun 17, 2020, 01:34 PM
Last activity: Jun 17, 2020, 02:29 PM