Exemplo n.º 1
0
 protected void btn_edit_Click(object sender, EventArgs e)
 {
     try
     {
         NewsComment newsComment = ReceiveHtml();
         NewsCommentBSO newsCommentBSO = new NewsCommentBSO();
         newsCommentBSO.UpdateNewsComment(newsComment);
         clientview.Text = String.Format(Resources.StringAdmin.UpdateSuccessful, "Nhận xét", newsComment.Title);
     }
     catch (Exception ex)
     {
         clientview.Text = ex.Message.ToString();
     }
 }
 protected void btn_disable_Click(object sender, EventArgs e)
 {
     if (NewsCommentID() != "")
     {
         NewsCommentBSO newsCommentBSO = new NewsCommentBSO();
         newsCommentBSO.UpdateNewsComment(NewsCommentID(), "0", Session["Admin_UserName"].ToString(), DateTime.Now);
     }
     NewsCommentView(Convert.ToInt32(hddGroup.Value));
 }