protected void dgvCart_RowDeleting(object sender, GridViewDeleteEventArgs e) { if (dgvCart.Rows.Count > 0) { CartBL cartBL = new CartBL(); int status = cartBL.DeleteProductFromCart(int.Parse(dgvCart.DataKeys[e.RowIndex].Values[0].ToString()), Session["cartID"].ToString()); //setValues(); //Response.Redirect("/cart.aspx"); loadCart(); //((CartFirstPage)Page.Master.FindControl("CartFirstPage1")).ProductsCount = dgvCart.Rows.Count; } }