//回复并保存 protected void lbtnSave_Click(object sender, EventArgs e) { YouthSecretary model = new YouthSecretary(); model.Reception_id = Convert.ToInt32(ViewState["reception_id"].ToString()); model.Secretary_sid = Convert.ToInt32(Session[Constant.adminID].ToString()); model.Secretary_name = Session[Constant.adminName].ToString(); model.Secretary_content = txtanswercontent.Text; model.Secretary_time = DateTime.Now; if (huifu_bll.AddSecretary(model)) { //并更新reception表的is_reply bll.UpdReception(Convert.ToInt32(ViewState["reception_id"].ToString())); MyUtil.ShowMessageRedirect(this.Page, "回复成功", "questionList.aspx"); } else { MyUtil.ShowMessage(this.Page, "回复失败"); } }