Exemplo n.º 1
0
        protected void btnRemove_Click(object sender, EventArgs e)
        {
            var button = (HtmlButton)sender;
            var index  = int.Parse(button.Attributes["index"]);
            var item   = helper.GetAllProducts(basket)[index];

            helper.RemoveProduct(basket, item);
            var url = WebUtil.GetRawUrl();

            Response.Redirect(url);
        }