protected void huifu_Click(object sender, EventArgs e) { int id = Int32.Parse(Request["id"]); Model.LiuYanBan mdoel = LiuYanBan.GetModel(id); mdoel.HuiFuNeiRong = Request["huifuneirong"].ToString(); mdoel.HuiFuShiJian = DateTime.Now; mdoel.HuiFuZhuangTai = "已回复"; new BLL.LiuYanBan().Update(mdoel); Response.Redirect("LiuYanBan_List.aspx"); }
public void ProcessRequest(HttpContext context) { string comment = context.Request["comment"]; string id = context.Request["id"]; BLL.LiuYanBan liuYanBan = new BLL.LiuYanBan(); Model.LiuYanBan model = new Model.LiuYanBan() { LiuYanShiJian = DateTime.Now, NeiRong = comment, BiaoTi = id.ToString(), HuiFuNeiRong = "", HuiFuZhuangTai = "未回复" }; liuYanBan.Add(model); context.Response.Write("ok"); }
protected void Page_Load(object sender, EventArgs e) { int id = Int32.Parse(Request["id"]); model = new BLL.LiuYanBan().GetModel(id); }