⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lt_updatehf.aspx.cs

📁 办公自动化系统
💻 CS
字号:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using COM.OA.BLL;
using COM.OA.Entity;

public partial class linminchao_bbs_lt_updateHF : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        users loginuser = Session["loginuser"] as users;
        if (loginuser == null)
        {
            this.Response.Write(string.Format(GetRedirect.ALLREDIRECT, "../../login.aspx"));
        }
        else
        {
            if (!IsPostBack)
            {

                int bbs_id = Int32.Parse(this.Request["bbs_id"]);
                int id = Int32.Parse(this.Request["id"]);
                bbsrevert br = bbsrevertBLL.Select(id);
                this.hf.Value = id.ToString();
                this.bt.Value = this.Request["bt"];
                this.FreeTextBox1.Text = br.br_revertcontent;
                Session.Add("hfid", id);
            }
        }
        
    }
    protected void submit1_ServerClick(object sender, EventArgs e)
    {
        int hfid = Int32.Parse(Session["hfid"].ToString());
        bbsrevert br = bbsrevertBLL.Select(hfid);
        br.br_revertcontent = this.FreeTextBox1.Text;
        int ii = bbsrevertBLL.Update(br);
        if (ii < 0)
        {
            this.Response.Write(string.Format(GetRedirect.REDIRECT, "lt_lookOne.aspx?bbs_id=" + br.br_bbs_id + ""));
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -