protected void rptcart_ItemCommand(object source, RepeaterCommandEventArgs e) { if (e.CommandName == "DeleteData") { using (cart obj = new cart()) { obj._id = Convert.ToInt64(e.CommandArgument.ToString()); obj.cart_deletebyid(); lblMsg.Text = "your item delete sucessfully"; lblMsg.Visible = true; } FillRepeater(); } }