protected void btnDeleteBlogComment_Click(object sender, CommandEventArgs e) { if (e.CommandName == "Delete") { int blogCommentId = Convert.ToInt32(e.CommandArgument); BlogManager.DeleteBlogComment(blogCommentId); BindData(); } }
protected void DeleteButton_Click(object sender, EventArgs e) { BlogManager.DeleteBlogComment(this.BlogCommentID); Response.Redirect("BlogComments.aspx"); }