Web/SysAdmin/Feedback/Edit2.aspx.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Web.SysAdmin.Feedback
{
    public partial class Edit2 : Web.UI.ManagePage
    {
        public int Id;
        public Model.Feedback model = new Model.Feedback();

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!int.TryParse(Request.Params["id"] as string, out this.Id))
            {
                JscriptMsg(350, 230, "错误提示", "<b>出现错误啦!</b>您要回复的信息不存在或参数不正确。", "back", "Error");
                return;
            }
            if (!Page.IsPostBack)
            {
                chkLoginLevel("editFeedback");
                ShowInfo(this.Id);
            }
        }

        //赋值操作
        private void ShowInfo(int _id)
        {
            BLL.Feedback bll = new BLL.Feedback();
            model = bll.GetModel(_id);
        }
        //protected void btnSave_Click(object sender, EventArgs e)
        //{
        //    BLL.Feedback bll = new BLL.Feedback();
        //    Model.Feedback model = bll.GetModel(this.Id);
        //    model.ReContent = this.huifu.InnerText.Trim();
        //    bll.Update(model);
        //    JscriptPrint("文章修改成功啦!", "List.aspx", "Success");

        //}

        //protected void Unnamed1_Click(object sender, EventArgs e)
        //{
        //    BLL.Feedback bll = new BLL.Feedback();
        //    Model.Feedback model = bll.GetModel(this.Id);
        //    model.ReContent = this.huifu.InnerText.Trim();
        //    bll.Update(model);
        //    JscriptPrint("留言回复成功啦!", "List.aspx", "Success");
        //}
    }
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。