about.aspx.cs

来自「小E单班同学录系统」· CS 代码 · 共 37 行

CS
37
字号
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;

public partial class Admin_About : MyPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        WebFunction.AdminLogin();
        this.ltlMessage.Text=null;
        if (!IsPostBack)
        {
            dbh.Reset();
            dbh.sqlCommand = "select top 1 About from ClassInfo";
            dbh.GetDataReader();
            if (dbh.dr.Read())
            {
                this.fck.Value = dbh.dr[0].ToString();
            }
        }
    }
    protected void btnSub_Click(object sender, EventArgs e)
    {
        dbh.Reset();
        dbh.tableName = "ClassInfo";
        dbh.AddFieldParameters("About", this.fck.Value);
        AlertHandleSucess(dbh.DataUpdate()>-1,this.ltlMessage,"更新","请查看系统出错日志");
    }
}

⌨️ 快捷键说明

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