title: SQL code for delete Row?
body: <p>please anyone to explain me what is the problem with following code why didn't delete Table Row.</p>
  
  <pre><code>con.Open();
  SqlCommand cmd = new SqlCommand("delete from RentTable where CID = '" + ID + "' and MID = '" + MID + "' )", con);
  int result = cmd.ExecuteNonQuery();
  if (result == 1)
  {
      Message = "succsess";
  }
  else
  {
      Message = "!";
  }
  con.Close();
  </code></pre>