示例#1
0
        protected void Save_Btn_Click(object sender, EventArgs e)
        {
            M_Comment model = commentBll.SelReturnModel(MainID);

            model.Contents    = MsgContent_T.Text;
            model.CommentTime = DataConverter.CDate(CDate_T.Text);
            commentBll.UpdateByID(model);
            Response.Redirect("CommentManage.aspx");
        }
 protected void Sure_Btn_Click(object sender, EventArgs e)
 {
     comMod             = comBll.SelReturnModel(Mid);
     comMod.Contents    = Contents.Text;
     comMod.Title       = Title_T.Text;
     comMod.CommentTime = DataConvert.CDate(CommentTime.Text);
     comBll.UpdateByID(comMod);
     function.WriteSuccessMsg("修改成功", "ShowContent.aspx?Gid=" + Gid + "&Modeid=" + modeid);
 }