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

正文內(nèi)容

在線小說城管理系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)畢業(yè)設(shè)計(jì)(編輯修改稿)

2025-01-04 01:39 本頁面
 

【文章內(nèi)容簡(jiǎn)介】 protected void Button1_Click object sender EventArgs e if TextBox1Text TextBox2Text ResponseWrite alert 用戶名或密碼不能為空 else SqlConnection conn new SqlConnection connOpen 打開數(shù)據(jù)庫連接 string sql stringFormat insert into [User] values 0 1 null SqlCommand cmd new SqlCommand sql conn cmdExecuteNonQuery connClose ResponseWrite alert 注冊(cè)成功 ResponseRedirect 1txt 將該頁跳轉(zhuǎn)到指定的頁面中 TextBox1Text TextBox2Text TextBox3Text 輸入文本框的信息是否為空如果為空系統(tǒng)則會(huì)彈出提示框提醒用戶輸入要修改的用戶信息 TextBox4 文本框后面的驗(yàn)證控件會(huì)判斷 TextBox3Text和 TextBox4Text文本框中新的密碼輸入是否一致不一致會(huì)顯示輸入密碼不一致必須重新填寫才能修改密碼如果所有的輸入信息都正確數(shù)據(jù)庫就會(huì)獲取用戶輸入信息將 數(shù)據(jù)庫的用戶信息根據(jù)用戶修改的信息加以保存修改完成會(huì)提示是用戶密碼修改成功用戶下次登錄是就要運(yùn)用新修改的密碼進(jìn)行登錄不然系統(tǒng)就會(huì)報(bào)用戶密碼錯(cuò)誤 關(guān)鍵技術(shù)密碼修改運(yùn)用了數(shù)據(jù)庫的 Update 方法 用戶密碼修改界面如下圖所示 圖 53 密碼修改頁面視圖 密碼修改后臺(tái)代碼如下 protected void Button1_Click object sender EventArgs e if TextBox1Text TextBox2Text ResponseWrite alert 用戶名或密碼不能為空 else if TextBox3Text ResponseWrite alert 密碼不能為空 else if TextBox4Text ResponseWrite alert 請(qǐng)?jiān)俅屋斎朊艽a else SqlConnection conn new SqlConnection connOpen string sql stringFormat Update [user] set pass 0 where name 1 and pass 2 SqlCommand cmd new SqlCommand sql conn cmdExecuteNonQuery ResponseWrite script language javascript alert 修改成功 location javascripthistorygo 1 connClose protected void Button2_Click object sender EventArgs e ResponseRedirect indexaspx 詢模塊 書籍查詢頁面設(shè)計(jì)流程新建一個(gè) web 頁面將其命名為 chaxunaspx 頁面在頁面設(shè)計(jì)視圖中添加一個(gè) textbox文本框 button按鈕和一個(gè) gridview表將 button按鈕的 text 屬性設(shè)置為查詢將 gridview1 綁定數(shù)據(jù)源到數(shù)據(jù)庫中的 bookinfo表 操作過程輸入搜索信息點(diǎn)擊查詢按鈕 書籍查詢頁面實(shí)現(xiàn) 1 通過網(wǎng)站鏈接到書籍?dāng)?shù)據(jù)庫系統(tǒng)創(chuàng)建一個(gè)鏈接打開數(shù)據(jù)庫中的 bookinfo 表 2 獲取用戶輸入的查詢信 息對(duì)數(shù)據(jù)庫中的圖書實(shí)習(xí)進(jìn)行逐一必對(duì) 3 獲得該圖書信息后將數(shù)據(jù)進(jìn)行填充綁定數(shù)據(jù)源將數(shù)據(jù)綁定在 Gridview1 表中 關(guān)鍵技術(shù)書籍查詢主要運(yùn)用的到了 SQL 數(shù)據(jù)庫的 Select 方法建立數(shù)據(jù)連接使用模糊查詢 書籍查詢視圖如下 圖 54 書籍查詢頁面視圖 查詢頁面的代碼和代碼分析如下 protected void Button1_Click1 object sender EventArgs e SqlConnection conn new SqlConnection connOpen SqlCommand cmd new SqlCommand DataSet ds new DataSet SqlDataAdapter da new SqlDataAdapter select from [bookinfo] where name like conn daFill ds bookinfo Source ds Bind 模塊 留言板界面設(shè)計(jì)與實(shí)現(xiàn)新建一個(gè) web 頁面將以命名為 liuyanaspx 在設(shè)計(jì)窗口界面中添加三個(gè) label控件三個(gè) textbox控件三個(gè) button控件將 label1設(shè)置為用戶名 label2 設(shè)置為留言主題 label3 設(shè)置為留言內(nèi)容將 textbox3 的textMode 屬性設(shè)置為 MultiLinebutton按鈕 text屬性分別設(shè)置為留言取消跟新雙擊所以 button 按鈕輸入相應(yīng)的共能操作代碼 操作過程分別輸入用戶名留言主題留言內(nèi)容點(diǎn)擊留言按鈕進(jìn)行留言操作 留言模塊實(shí)現(xiàn)首先輸入用戶名再輸入留言主題后開始 填寫留言內(nèi)容完成以上操作后點(diǎn)擊留言留言就成功 關(guān)鍵技術(shù)留言界面使用了數(shù)據(jù)庫連接技術(shù)和 SQL insert 方法 圖 55 留言板界面視圖 留言界面代碼如下 protected void Button1_Click object sender EventArgs e SqlConnection conn new SqlConnection connOpen 打開數(shù)據(jù)庫連接 string sql stringFormat insert into [liuyan] values 0 1 2 3 null SyToString 插入數(shù)據(jù) SqlCommand cmd new SqlCommand sql conn cmdExecuteNonQuery 執(zhí)行命令 connClose ResponseWrite alert 留言成功 protected void Button3_Click object sender EventArgs e ResponseRedirect liuyanaspx protected void Button2_Click object sender EventArgs e ResponseRedirect indexaspx 塊 下載界面設(shè)計(jì)與實(shí)現(xiàn)添加一個(gè) gridview 控件見下載信息表的數(shù)據(jù)綁定數(shù)據(jù)表中添加下載列編寫下載代碼 操作過程點(diǎn)擊書籍信息中的下 載按鈕實(shí)現(xiàn)下載功能 下載模塊實(shí)現(xiàn)點(diǎn)擊下載導(dǎo)航欄鏈接到下在頁面查看相應(yīng)的書籍信息點(diǎn)擊下載按鈕實(shí)施下載 關(guān)鍵技術(shù)使用了 ServerMapPath 圖 56 下載界面圖 下載按鈕代碼如下 protected void Page_Load object sender EventArgs e string name downBook string path new DirectoryInfo ServerMapPath FullNameToString \book\ name 獲取書籍的的路徑 string str pathReplace \\ SyInfo file new SyInfo str if fileExists ResponseClear ResponseAddHeader ContentDisposition attachment filename ServerUrlEncode fileName 解決中文亂碼 ResponseAddHeader ContentLength ring 返回一個(gè)不能被客戶端讀取的的流必須被下載 ResponseContentType applicationoctetstream設(shè)置二進(jìn)制數(shù)據(jù)流 Respe ResponseWriteFile fileFullName ResponseEnd else ResponseWrite This file does not exist ResponseRedirect downloadaspx public string downBook SqlConnection conn new SqlConnection ConfigurationManagerConnectionStrings[zaixianxiaoshuoConnectionString]ToString try connOpen SqlCommand cmd new SqlCommand cmdCommandText select name from [xiazai] where id id cmdConnection conn id SqlDbTypeNChar Value getId ToString SqlDataReader dr cmdExecuteReader string name if drRead name drGetString 0 Trim ToString drClose cmdExecuteNonQuery return name finally connClose public string getId string id HttpConAndQuery int n idLastIndexOf id idSubstring n 1 return id
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1