Example #1
0
        private void ddlAmount_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                DropDownList  ddl   = sender as DropDownList;
                PurchaseModel model = new PurchaseModel();

                model.UpdataAmount(Convert.ToInt32(ddl.ID), Convert.ToInt32(ddl.SelectedValue));
                Response.Redirect("~/Page/ShoppingCart.aspx");
            }
            catch (Exception ex)
            {
                LabelError.Text = ex.ToString();
            }
        }