Example #1
0
    protected void btSaveAndContinue_Click(object sender, EventArgs e)
    {
        //Products

        ProductService.serProduct productInput = new ProductService.serProduct();
        DataSet dataset3 = productInput.Product_GetAll();


        DataRow dr3 = dataset3.Tables[0].NewRow();

        bool successfull3 = false;


        if (fromScreenToEntityProducts(dr3))
        {
            dataset3.Tables[0].Rows.Add(dr3);
            successfull3 = productInput.UpdateProduct(dataset3);
        }
        if (successfull3)
        {
            LabelErr.Text        = "Products details was added";
            Session["productid"] = lbProductId.Text;
            Response.Redirect("ProductPictures.aspx");
        }
        else
        {
            LabelErr.Text = "Transaction rolled back";
        }
    }
    protected void btSaveAndContinue_Click(object sender, EventArgs e)
    {
        //Products

        ProductService.serProduct productInput = new ProductService.serProduct();
        DataSet dataset3 = productInput.Product_GetAll();
        

        DataRow dr3 = dataset3.Tables[0].NewRow();

        bool successfull3 = false;
        

        if (fromScreenToEntityProducts(dr3))
        {
            dataset3.Tables[0].Rows.Add(dr3);
            successfull3 = productInput.UpdateProduct(dataset3);
        }
        if (successfull3)
        {
            LabelErr.Text = "Products details was added";
            Session["productid"] = lbProductId.Text;
            Response.Redirect("ProductPictures.aspx");

        }
        else
        {
            LabelErr.Text = "Transaction rolled back";
        }
    }