private void btnDelete_ServerClick(object sender, System.EventArgs e) { // delete the forum. bool result = ForumManager.DeleteForum(_forumID); // invalidate cache CacheManager.InvalidateCachedItem(CacheManager.ProduceCacheKey(CacheKeys.SingleForum, _forumID)); // Done Response.Redirect("ModifyDeleteForum.aspx", true); }
protected void DeleteButton_Click(object sender, EventArgs e) { try { ForumManager.DeleteForum(this.ForumID); Response.Redirect("Forums.aspx"); } catch (Exception exc) { ProcessException(exc); } }