protected void onClickDetails(object sender, RepeaterCommandEventArgs e) { if (e.CommandName == "details") { Button c = e.Item.FindControl("btDetails") as Button; int id = Convert.ToInt32(e.CommandArgument); controller.wybranoPokazSzczegoly(id); } else if (e.CommandName == "delete") { int id = Convert.ToInt32(e.CommandArgument); controller.wybranoUsunSamochod(id); } }
protected void onClickBtDelete(object sender, EventArgs e) { controller.wybranoUsunSamochod(samochod.Id); }