Example #1
0
    private void Remove_Product(object sender, EventArgs e)
    {
        LinkButton highlightedLink = (LinkButton)sender;
        string     link            = highlightedLink.ID.Replace("no", "");
        int        cartId          = Convert.ToInt32(link);

        Cart_Model removemodel = new Cart_Model();

        removemodel.DeleteCart(cartId);

        Response.Redirect("~/Pages/Trolley.aspx");
    }