Пример #1
0
        protected void Button1_click(object sender, EventArgs e)
        {
            var product = sc.AddNewProduct(pname.Value, Convert.ToInt32(price.Value), col.Value, quantity.Value, type.Value, description.Value, img.Value);

            if (product == 1)
            {
                Response.Redirect("Home.aspx");
            }
        }