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