Exemplo n.º 1
0
    /// <summary>
    /// 
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void btnDelete_Click(object sender, EventArgs e)
    {
        ProductAdmin _ProductAdmin = new ProductAdmin();
        bool Retvalue = _ProductAdmin.DeleteByProductID(ItemID, ZNode.Libraries.Framework.Business.ZNodeConfigManager.SiteConfig.PortalID);

        if (Retvalue)
        {
            Response.Redirect(CancelLink);
        }
        else
        {
            lblErrorMessage.Text = "The product can not be deleted until all associated items are removed. Please ensure that this product does not contain cross-sell items, product images, or skus. If it does, then delete these Items first.";
        }
    }