//保存 protected void btnSubmit_Click(object sender, EventArgs e) { ChkAdminLevel("plugin_feedback", DTEnums.ActionEnum.Reply.ToString()); //检查权限 BLL.plugin_feedback bll = new BLL.plugin_feedback(); model = bll.GetModel(this.id); model.reply_content = Utils.ToHtml(txtReContent.Text); model.reply_time = DateTime.Now; bll.Update(model); AddAdminLog(DTEnums.ActionEnum.Reply.ToString(), "回复留言插件内容:" + model.title); //记录日志 JscriptMsg("留言回复成功!", "index.aspx"); }
//赋值操作 private void ShowInfo(int _id) { BLL.plugin_feedback bll = new BLL.plugin_feedback(); model = bll.GetModel(_id); txtReContent.Text = Utils.ToTxt(model.reply_content); }