private void ShowInfo(int _id) { BLL.comment bll = new BLL.comment(); model = bll.GetModel(_id); txtReContent.Text = Utils.ToTxt(model.reply_content); rblIsLock.SelectedValue = model.is_lock.ToString(); }
//保存 protected void btnSubmit_Click(object sender, EventArgs e) { BLL.comment bll = new BLL.comment(); model = bll.GetModel(this.id); model.is_reply = 1; model.reply_content = Utils.ToHtml(txtReContent.Text); model.is_lock = int.Parse(rblIsLock.SelectedValue); model.reply_time = DateTime.Now; bll.Update(model); JscriptMsg("评论回复成功啦!", "list.aspx?channel_id=" + model.channel_id, "Success"); }