예제 #1
0
        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");
        }
예제 #2
0
        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");
        }
예제 #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int id = Int32.Parse(Request["id"]);

            model = new BLL.LiuYanBan().GetModel(id);
        }