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

正文內(nèi)容

基于aspnet的多靈鍵鼠外設(shè)產(chǎn)品網(wǎng)站的設(shè)計說明書畢業(yè)論文(編輯修改稿)

2025-04-03 08:31 本頁面
 

【文章內(nèi)容簡介】 } 第 14 頁 共 32 頁 如果填寫錯誤可以點擊重置按鈕來清空文本框。 代碼: protected void Unnamed1_Click(object sender, ImageClickEventArgs e) { = 。 = 。} } 密碼 找回 圖 43 密碼找加頁面 如果忘記密碼可以點擊圖 2中的 忘記密碼右邊對應(yīng)的 點擊這里的按鈕。彈出圖 43所示的 頁面 , 填寫密保問題可以得到密碼 。 主要代碼 如下所示。 protected void Button1_Click(object sender, EventArgs e) { string sql = select * from tb_user where username=39。 + + 39。 and question=39。 + () + 39。//查詢用戶名,和密保問題 try { DataSet ds = (sql)。//數(shù)據(jù)集 DS等于剛才 SQL語句查詢出來的數(shù)據(jù) if ([0]. == 0)//如果 沒有 這 條數(shù)據(jù) (用戶名或密保問題錯誤) ,輸出用戶名錯誤或 密保問題 錯誤 { (scriptalert(39。用戶名錯誤或問題錯誤!39。)。()。/script)。 } else { string sql1= select * from tb_user where username=39。 + + 39。 and question=39。 + () + 第 15 頁 共 32 頁 39。and answer=39。 + + 39。 DataSet ds1 = new DataSet()。 ds1 = (sql1)。 //否則執(zhí)行 SQL1的 SQL語句, 查詢用戶的 密保問題和答案 if ([0]. == 0)//驗證 確 { (scriptalert(39。答案錯誤39。)。()。/script)。 } else { =你的密碼是: 。 = [0].Rows[0][password].ToString()。} } } catch(Exception ex) {()。} } 如果 想修改密碼可以點擊圖 42中的修改密碼右邊對應(yīng)的點擊這里的按鈕 ,進 入如圖 44所示的修改頁碼頁面。 圖 44 修改密碼頁 主要代碼 如下所示。 DB_Help dbhelp = new DB_Help()。//新建 DB_Help類對象 dbhelp protected void Page_Load(object sender, EventArgs e) { if (Session[user] == null) { (scriptalert(39。請先登錄39。)。location=39。39。/script)。 } }//驗證用戶是否登錄,如果用戶沒登錄,發(fā)出請先登錄的警報 protected void Button1_Click(object sender, EventArgs e) { user user1 = new user()。 user1 = (user)Session[user]。 第 16 頁 共 32 頁 try { = 。// 將登錄用戶的登陸名賦給 Label3。 } catch (Exception ex) { (39。 39。)。 } if ( == )//如果用戶的舊密碼和 TextBox2上的值相等 { string sql = update tb_user set password=39。 + + 39。 where username=39。 + + 39。//就更新用戶的密碼,密碼的值為 TextBox3上的值。 try { int i = (sql)。 if (i 0) (scriptalert(39。修改成功! 39。)。 location=39。39。/script)。 } catch (Exception ex) { (scriptalert(39。修改 出現(xiàn)異常!39。)。location=39。39。/script)。 } } else { = 原密碼輸入錯誤 。 } } } 商品頁面功能 點擊圖 41上的鼠標(biāo),鍵盤,鍵鼠套裝,可以分別進入對應(yīng)商品的頁面, 此處以商品鼠標(biāo)為例 。 第 17 頁 共 32 頁 圖 45 商品顯示頁面 多條件查詢商品 例如。你想要搜索 牌子為雷蛇價格范圍在 0199之間 可以點擊相應(yīng)的按鈕。與平時我們利用 DropDownList控件 所做的多條件查詢不同。這個網(wǎng)站是利用button 按鈕來做 多條件查詢功能的。 當(dāng)然, 利用 button來做多條件查詢功能的過程也比較復(fù)雜。 ( Lable2用來記錄品牌, Lable3用來記錄價格) 主要代碼 如下所示。 protected void Button4_Click(object sender, EventArgs e) { if ( == )//如果 Lable2沒有品牌的值,則查詢價格在 0199的所有鼠標(biāo)( sql語句) { string sql1 = select * from tb_mouse where price0 and price200 。 = 0199。//并賦值 0199給 Lable3 try { ds = (sql1)。//執(zhí)行 SQL1語句 = ds。// GridView1的數(shù)據(jù)源為 sql1語句的數(shù)據(jù) ()。 ()。 for (int i = 0。 i 。 i++) { ((i + 1).ToString())。 } } catch (Exception ex) { 第 18 頁 共 32 頁 ()。 } } else { string sql = select * from tb_mouse where price0 and price200 and brand=39。 + + 39。 = 0199。//否則執(zhí)行 sql語句 ,查詢 0199,并且品牌為 Lable2上顯示的品牌的鼠標(biāo) try { ds = (sql)。 = ds。 ()。 ()。 for (int i = 0。 i 。 i++) { ((i + 1).ToString())。 } } catch (Exception ex) { ()。 } } 獲取商品詳細信息并 添加 商品 到購物車 圖 47 商品詳細信息頁面 第 19 頁 共 32 頁 詳細頁面獲取數(shù)據(jù)得代碼 如下所示。 public void load() { id = [id]。//獲取頁面?zhèn)鬟^來的商品的 id(圖 46中的更多參數(shù)中有商品 id,) string sql = select * from tb_mouse where id=39。 + id + 39。//查詢鼠標(biāo) id為傳過來的 id的鼠標(biāo)信息 try { DataSet ds = (sql)。 = [0].Rows[0][images].ToString()。 = [0].Rows[0][mmodel].ToString()。 = [0].Rows[0][price].ToString()。 = [0].Rows[0][mtype].ToString()。 = [0].Rows[0][connection].ToString()。 = [0].Rows[0][bnum].ToString()。 = [0].Rows[0][wheelnum].ToString()。 = [0].Rows[0][minterface].ToString()。 = [0].Rows[0][mhe].ToString()。 = [0].Rows[0][mpower].ToString()。 = [0].Rows[0][DPI].ToString()。 = [0].Rows[0][color].ToString()。 = [0].Rows[0][properties].ToString()。 = id。 }//以上為賦值給顯示各對應(yīng)信息的 Lable catch (Exception ex) { ()。} 圖 7為商品的詳細頁面,詳細頁面可以更全面的讓用戶了解商品。在詳細頁面的最下方有添加商品到購物車的信息。在文本框中可以寫上自己想要購買的商品的數(shù)量(數(shù)量默認是 1)。點擊到購物車按鈕進入自己的購物車(購物車要用戶登錄才可以用,否則在最右下邊框中會出現(xiàn)“請先登錄的提示”) ,如果想要繼續(xù)購物也可以點擊繼續(xù)購物按鈕繼 續(xù)購物 。 跳轉(zhuǎn)到購物車網(wǎng)頁的代碼 如下所示。 public void load() { user user1 = new user()。 user1 = (user)Session[user]。 第 20 頁 共 32 頁 string sql1 = update tb_cart set totalprice=price*quantity。 string sql5 = select * from tb_cart where username=39。 + + 39。and ifbuy=39。未 39。 try
點擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1