📄 depedit.aspx.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;
public partial class Management_depedit : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
TextBox2.ReadOnly = false;
TextBox3.ReadOnly = false;
string id = Session["id"].ToString();
string name = Session["name"].ToString();
string psw = Session["psw"].ToString();
string type = Session["type"].ToString();
int idint = Convert.ToInt32(id);
string sql = "select * from department where adminid=" + idint;
DataTable Info = GenericDataAccess.ExecuteSelectCommand(sql, Page);
Label1.Text = Info.Rows[0]["dename"].ToString();
string test = Info.Rows[0]["sectype"].ToString();
TextBox2.Text = "";
if (Info.Rows[0]["sectype"].ToString() != "")
{
TextBox2.Text = Info.Rows[0]["sectype"].ToString();
TextBox2.ReadOnly = true;
}
TextBox3.Text = Info.Rows[0]["descrption"].ToString();
TextBox3.ReadOnly = true;
}
}
protected void Button1_Click1(object sender, EventArgs e)
{
Response.Redirect("~/Management/depedit.aspx");
}
protected void Button2_Click(object sender, EventArgs e)
{
Response.Redirect("~/BusinessSys/addPerson.aspx");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -