protected void onClickPrzypisz(object sender, RepeaterCommandEventArgs e) { if (e.CommandName == "przypisz") { Button c = e.Item.FindControl("btPrzypisz") as Button; int id_kuriera = Convert.ToInt32(e.CommandArgument); controller.wybranoPowiazKurieraZSamochodu(id_samochodu, id_kuriera); } }
protected void onClickBind(object sender, RepeaterCommandEventArgs e) { if (e.CommandName == "bind") { Button c = e.Item.FindControl("btBind") as Button; if (c != null) { int id = Int32.Parse(c.Attributes["data-id"] as string); controller.wybranoPowiazKurieraZSamochodu(idSamochodu, id); } } }