예제 #1
0
    /// <summary>
    /// Confirm Button Click Event
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void btnDelete_Click(object sender, EventArgs e)
    {
        ProductAdmin _productAdmin = new ProductAdmin();

        bool Check = _productAdmin.EmptyCatalog(HttpContext.Current.User.Identity.Name);

        if (Check)
        {
            Response.Redirect("~/admin/secure/settings/default.aspx?mode=setup");
        }
        else
        {
            //Display Error Message
            lblErrorMessage.Text = " Delete action could not be completed. Please try again.";
        }
    }