Exemple #1
0
    protected void btnPerm_Click(object sender, EventArgs e)
    {
        ToggleGrid(false);
        uResult.Visible = true;
        try
        {
            ProductReview.Delete(int.Parse(lblID.Text));

            uResult.ShowSuccess("Review Permanently Deleted");

            btnSave.Enabled = false;
            btnPerm.Enabled = false;
        }
        catch (Exception x)
        {
            uResult.ShowFail("Cannot delete this review");
        }
    }