freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

平面廣告公司管理系統(tǒng)(編輯修改稿)

2024-12-19 17:41 本頁面
 

【文章內(nèi)容簡介】 rname=39。 + () + 39。 and userpwd=39。 + () + 39。and level=39。 + ())。 int count = (())。 if (count 0) { Session[username] = 。 ()。 } else { (scriptalert(39。用戶名或者密碼錯誤 ,請重新輸入!39。)。()/script)。 return。 } ()。 ()。 } protected void Button2_Click(object sender, EventArgs e) { = 。 = 。 } } 各主要功能實現(xiàn) 員工信息添加 功能 實現(xiàn) 在 page_Load()事件中,對 DataGrid 控件的數(shù)據(jù)綁定 bind()方法進行調(diào)用,代碼如下: protected void Page_Load(object sender, EventArgs e) {if (!IsPostBack) { ()。}} Bind()方法的實現(xiàn)過程,通過連接數(shù)據(jù)庫,使用存儲過程取出用戶表里面的信息,并在DataGrid 控件上顯示。代碼如下: public SqlConnection GetConnection() { //連接到本地計算機的 yuwu 數(shù)據(jù)庫 string myStr = Data Source=NIUGU。Initial Catalog=yewu。user id=sa。pwd=123456。Integrated Security=True。 SqlConnection myConn = new SqlConnection(myStr)。 return myConn。 20 } protected void bind() { SqlConnection myConn = GetConnection()。 ()。 string sqlStr = select * from [User] 。 //創(chuàng)建 SqlDataAdapter 對象,調(diào)用 SQL 語句 SqlDataAdapter myDa = new SqlDataAdapter(sqlStr, myConn)。 DataSet myDs = new DataSet()。 (myDs)。 = myDs。 ()。 ()。 ()。 ()。 } 當用戶單擊“添加”按鈕后,觸發(fā)添加事件,代碼為: protected void btnAdd_Click(object sender, EventArgs e) { if ( != ) { SqlConnection myConn = GetConnection()。 ()。 // 往數(shù)據(jù)庫插入信息 string sqlStr = insert into [User] ( username, userpwd ,realname,bianhao,bumen,zhiwei,sex,level ,phone,addtime, xueli)values(39。 + () + 39。,39。 + () + 39。,39。 + () + 39。,39。 + () + 39。,39。 + () + 39。,39。+ () + 39。,39。 + () + 39。,39。 + () + 39。,39。 + () + 39。,39。 + () + 39。,39。 + () + 39。)。 SqlCommand myCmd = new SqlCommand(sqlStr, myConn)。 ()。 ()。 //關(guān)閉連接 ()。 try { = 添加成功 。 [color] = green。 } catch (SqlException error) { = 添加失敗,請稍后再試: + 。 [color] = red。}} else 21 ()。} 員工信息刪除 功能實現(xiàn) public partial class admin_deleteuser : { protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ()。 } } public SqlConnection GetConnection() { SqlConnection myConn = new SqlConnection(Data Source=NIUGU。Initial Catalog=yewu。user id=sa。pwd=123456。Integrated Security=True)。//數(shù)據(jù)連接代碼 return myConn。 } //存儲過程個取出信息,并顯示 protected void bind() { SqlConnection myConn = GetConnection()。 ()。 string sqlStr = select * from [User] 。 SqlDataAdapter myDa = new SqlDataAdapter(sqlStr, myConn)。 DataSet myDs = new DataSet()。 (myDs)。 = myDs。 = new string[] { bianhao }。 ()。 ()。 ()。 ()。 } //刪除數(shù)據(jù) protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e) { int bianhao = ([].())。 string sqlStr = delete from [User] where bianhao= + bianhao。 SqlConnection myConn = GetConnection()。 ()。 SqlCommand myCmd = new SqlCommand(sqlStr, myConn)。 22 ()。 ()。 ()。 = 1。 ()。 } protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if ( == ) { ((LinkButton)[0].Controls[0]).(onclick, return confirm(39。確定要刪除嗎 ?39。))。 } } } 員工信息修改 功能實現(xiàn) 該代碼這實現(xiàn)信息修改 protected void bind() { SqlConnection myConn = GetConnection()。 ()。 string sqlStr = select * from [User] 。 SqlDataAdapter myDa = new SqlDataAdapter(sqlStr, myConn)。 DataSet myDs = new DataSet()。 (myDs)。 = myDs。 = new string[] { bianhao }。 ()。 ()。 ()。 ()。 } protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e) { = 。 ()。 } protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e) { int bianhao = ([].())。 string username = ((TextBox)([].Cells[0].Controls[1])).()。 23 string userpwd = ((TextBox)([].Cells[0].Controls[2])).()。 string realname = ((TextBox)([].Cells[0].Controls[3])).()。 string zhiwei = ((TextBox)([].Cells[0].Controls[4])).()。
點擊復(fù)制文檔內(nèi)容
法律信息相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1