/// <summary> /// Handle ButtonDelete click event /// Delete selected content /// </summary> /// <remarks>Display message and back to Contents home page if successful</remarks> protected void ButtonDelete_Click(object sender, EventArgs e) { if (content.DeleteContent(int.Parse(lblContentID.Text))) { Page.ClientScript.RegisterClientScriptBlock(GetType(), "alert", "alert('Content Deleted');document.location.href='Contents.aspx';", true); } }