private void dtlistLeaveCommentsReply_DeleteCommand(object sender, System.Web.UI.WebControls.DataListCommandEventArgs e) { long leaveReplyId = System.Convert.ToInt64(this.dtlistLeaveCommentsReply.DataKeys[e.Item.ItemIndex]); if (NoticeHelper.DeleteLeaveCommentReply(leaveReplyId)) { this.ShowMsg("删除成功", true); this.BindList(); return; } this.ShowMsg("删除失败,请重试", false); }
private void dtlistLeaveCommentsReply_DeleteCommand(object sender, DataListCommandEventArgs e) { if (NoticeHelper.DeleteLeaveCommentReply(Convert.ToInt64(this.dtlistLeaveCommentsReply.DataKeys[e.Item.ItemIndex]))) { this.ShowMsg("删除成功", true); this.BindList(); } else { this.ShowMsg("删除失败,请重试", false); } }