hi I'm having troubles regarding the window alert of my program. it always show 'no record found in the database' but it successfully delete the row. asking for a hand here. thanks!
try
            {
                con.Open();
                string Sql = "DELETE FROM contacts WHERE LastName LIKE '" + txtbx_delete.Text + "'";
                MySqlDataAdapter da = new MySqlDataAdapter(Sql, con);
                DataSet ds = new DataSet();
                da.Fill(ds);
                if (ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
                {
                    ClientScript.RegisterClientScriptBlock(this.GetType(), "alert", "alert('Delete successful! Check display!')", true);
                }
                else
                {
                    ClientScript.RegisterClientScriptBlock(this.GetType(), "alert", "alert('No record with that last name found!')", true);
                }
            }
 
     
     
    