Ejemplo n.º 1
0
    /// <summary>
    /// Delete Button Click event
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void btnDelete_Click(object sender, EventArgs e)
    {
        HighlightAdmin AdminAccess = new HighlightAdmin();

        bool check = AdminAccess.Delete(ItemID);
        if (check)
        {
            Response.Redirect(CancelLink);
        }
        else
        {
            lblErrorMessage.Text = "The highlight can not be deleted until all associated items are removed. Please ensure that this highlight does not associate with the catalog product. If it does, then delete these Items first.";
        }
    }