protected void btnDelete_Click(object sender, EventArgs e) { guidRootContentID = new Guid(hdnRootID.Value); using (ContentPageHelper cph = new ContentPageHelper()) { cph.RemoveContent(SiteID, guidRootContentID); } Response.Redirect(SiteFilename.BlogPostIndexURL); }