protected void rptView_ItemCommand(object source, RepeaterCommandEventArgs e) { // ÜRÜNÜ DEPODAN KALDIRIR if (e.CommandName == "Delete") { int pID = Convert.ToInt32(e.CommandArgument); // Tıklanılan satırdaki ürünün productid'sini çeker. proxy = new ServiceReference1.ServiceClient(); bool check = proxy.DeleteProduct(pID); rptView.DataSource = proxy.GetProduct(); rptView.DataBind(); } }