public void delete(string id, string fname, string lname, string age) { dao = DAO.ini(DaoName); int tmp_id = Int32.Parse(id); int tmp_age = Int32.Parse(age); dao.delete(new Person(tmp_id, fname, lname, tmp_age)); }
protected void btnDelite_Click(object sender, EventArgs e) { dao.delete(targetPerson()); rp.DataSource = dao.read(); rp.DataBind(); }