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

正文內(nèi)容

基于asp的企業(yè)網(wǎng)站的設(shè)計與實(shí)現(xiàn)--圖書電子交易系統(tǒng)畢業(yè)論文(文件)

2025-08-01 10:11 上一頁面

下一頁面
 

【正文】 的數(shù)據(jù)處理中,數(shù)據(jù)都是從數(shù)據(jù)庫中讀取 ,然后在應(yīng)用程序中執(zhí)行。 //******************************************************* public class CustomerDetails { 15 public String CustomerName。 //客戶郵箱 public String CustomerAddress。 因?yàn)樵跀?shù)據(jù)庫設(shè)計中通常利用一個自增的 ID 作為表的主鍵,這個 ID 是 SQL Server 自動維護(hù)的。 ② 下面開始讀取 SQL 數(shù)據(jù)庫,首先要設(shè)置連接字符串, 代碼 44如下: //創(chuàng)建一個連接 SqlConnection 和 SqlCommand 對象 SqlConnection myConnection = new SqlConnection (ConfigurationSettings. AppSettings[“ConnectionString”])。pwd=’ ’ ”/ /appSettings /configuration 這是一種典型的數(shù)據(jù)庫連接配置的方法,在 中配置,然后通過使用[“ConnectionString”]方法即可讀取連接字符串。 SqlCommand myCommand = new SqlCommand(“CustomerDetail”,myConnection)。 ④ 數(shù)據(jù)庫連接和數(shù)據(jù)庫執(zhí)行的參數(shù)都準(zhǔn)備好了,下一步就打開數(shù)據(jù)庫執(zhí)行命令。 ⑤ 在 CustomerDetail 存儲過程中,已經(jīng)定義了返回的用戶信息。 = (string)。 = (string)。 ⒉ 更新數(shù)據(jù)庫 當(dāng)應(yīng)用程序添加、刪除或更改了用戶信息,就需要把更改后的數(shù)據(jù)保存到數(shù)據(jù)庫中。連接字符串在 由 ConnectionString設(shè) 定。 ③ 接下來就是要 傳遞存儲過程所需要的參數(shù)。 SqlParameter parameterCustomerName = new SqlParameter(CustomerName, , 50)。 = CustomerSex。 (parameterCustomerPassword)。 SqlParameter parameterCustomerAddress = new SqlParameter(CustomerAddress, , 50)。 =CustomerTel。 (parameterCustomerID)。 ()。 } 在 try語句中,還使用 int customerId = (int)獲取用戶的 ID,這樣應(yīng)用程序就可以使用該編號跟蹤用戶,免得重新從數(shù)據(jù)庫中讀 取。 SqlConnection myConnection = new SqlConnection([ConnectionString])。 SqlParameter parameterEmail = new SqlParameter(Email, , 50)。 = password。 (parameterCustomerID)。 //執(zhí)行結(jié)果返回客戶的 ID編號 int customerId = (int)()。 } } 頁面設(shè)計與實(shí)現(xiàn) 系統(tǒng)功能模塊圖 主頁面 主頁面由 , 主要是起頁面導(dǎo)航功能,顯示給用戶本系統(tǒng)主要有什么內(nèi)容。 代碼 415 *.aspx文件中注冊用戶控件: % Register TagPrefix=OnNetBookSell TagName=Menu Src= % ONNETBOOKSELL:MENU id=Menu1 runat=server/ONNETBOOKSELL:MENU 然后在相應(yīng) 的隱藏文件中,根據(jù)控件的 ID定義相應(yīng)的變量。 圖 44 當(dāng)購買圖書時有 3種情況: ⑴ 用戶曾經(jīng)注冊過,在進(jìn)入主頁時,登錄然后購買圖書。 ⑵ 如果用戶未注冊或未登錄,當(dāng)用戶購物時,系統(tǒng)將隨機(jī)生成一個臨時 CartID,以后如果用戶注冊或登錄,就把臨時賬號轉(zhuǎn)移到正式賬號上。 String tempCartID = ()。 (tempCartID, customerId)。 } //頁面轉(zhuǎn)向用戶最初請求頁面 (customerId, )。 代碼 418 ,cs部分 代碼: private void Page_Load(object sender, e) {//查詢類表 int categoryId = ([CategoryID])。 } 26 圖 46 圖書詳情頁面 ,主要由 HTML代碼組成,在隱藏文件中通過另外頁面?zhèn)鬟f過來的 BookID參數(shù)進(jìn)行顯示。 代碼 419 ,cs頁面加載事件: private void Page_Load(object sender, e) {if ( != true) { //獲取圖書 ID int bookID = (Request[bookID])。 開始搜索 輸入條件 搜索結(jié)果 查看商品 購物車 下訂單 繼續(xù)搜索 是 否 28 } } 代碼 420 ,cs添加事件代碼: private void Page_Load(object sender, e) { // 獲取圖書編號 int BookID = ([BookID])。 = ({0:c}, )。 = ?BookID= + BookID。 代碼 421 : private void Page_Load(object sender, e) 29 {if ([BookID] != null) { ShoppingCartDB cart = new ShoppingCartDB()。 } 購物車頁面 購物車流程圖 用于顯示當(dāng)前購物車上圖書的信息。代碼 : void UpdateShoppingCartDatabase() { ShoppingCartDB cart = new ShoppingCartDB()。 i++) { // Obtain references to row39。 try { quantity = ()。} } } catch { = There has been a problem with one or more of your inputs.。 圖 413 33 第 5章 系統(tǒng)安裝、調(diào)試與測試 系統(tǒng)開發(fā)平臺與運(yùn)行環(huán)境 開發(fā)環(huán)境: WindowsXP Professional IIS ( Inter Information Server ) Inter Explorer 腳本語言: JavaScript、 VBScript 數(shù)據(jù)庫工具: Microsoft SQL Server 20xx ASP 開發(fā)工具: Microsoft Visual Studio 20xx 系統(tǒng)調(diào)試與測試 34 第 6章 結(jié)論 系統(tǒng)特色 整體設(shè)計 結(jié)構(gòu) 采用 B/S 結(jié)構(gòu) ,相對 于傳統(tǒng)的 C/S 結(jié)構(gòu) 更加安全、快 捷 、準(zhǔn)確。 心得與收獲 代碼理解不難,主要是開發(fā)思想的建立 圖書電子交易系統(tǒng)屬于電子商 務(wù)購物系統(tǒng)范疇,難點(diǎn)和重點(diǎn)是 購物車功能和訂單功能的實(shí)現(xiàn)。在開發(fā)該系統(tǒng)的過程中,我深入研究了如何利用、如何用 Access對數(shù)據(jù)庫加以管理與維護(hù)、如何借助IIS( Inter Information Server)在網(wǎng)上進(jìn)行信息發(fā)布等,為了增強(qiáng)系統(tǒng)的實(shí)用性,使之能盡量與實(shí)際的應(yīng)用系統(tǒng)相吻合,我對幾個同類網(wǎng)站的內(nèi)容、功能進(jìn)行了分析與對比,吸取了他們的可取之處,借鑒了一些經(jīng)驗(yàn)。個人交易平臺包括我要買書和我要賣書兩部分。 本文中所做的主要工作如下: 35 ( 1)介紹了個性化頁面的背景及 IIS+ASP 系統(tǒng)的一般原理; ( 2)闡述整個個性化頁面生成系統(tǒng)的系統(tǒng)結(jié)構(gòu)及工作原理;分析了系統(tǒng)實(shí)現(xiàn)中的特殊性、難點(diǎn)和重 點(diǎn)。s development tendency is tallies. The database and it contains the data is regarded as is one kind of important public property, moreover in the very many IT department, started to appear one kind of special data bank administration anization (DBA), they are responsible to maintain the database, defines data which and renews it to contain, provides visit to database work and so on constitutive property. The IT department or in the pany other departments other anization is responsible to develop the visit database the application procedure, the report form, the inquiry or other logical programs. But the database security, the visit form which permits, generally speaking related database domain all work, all pletes by DBA. In the modern enterprise scope the relational database two important characteristics memories process and the trigger have bee this kind of tendency the constituent. The memory process provides the performance uses in the database interior execution and the database interior execution and database correlation application processing. For example, a memory 39 process may plete such application task, namely accepts a customer the order form or from a bank account to another account shift currency. The trigger uses in the condition automatic initiation memory process processing performance which acts according to in the database to appear. For example, if the expense account appears overdraws, then the trigger may automatically from the deposit account shift fund to the expense account in. The memory process and the trigger characteristic obtained the enormous expansion in the 1990s last stages pop。 ( 4)分析并解決實(shí)現(xiàn)中的若干技術(shù)問題; ( 5)建立完整的實(shí)驗(yàn)網(wǎng)站,進(jìn)行測試并分析結(jié)果。 動態(tài)更新是本系統(tǒng)的一大特色,這主要?dú)w功于數(shù)據(jù)庫的完美設(shè)計。最后是系統(tǒng)各模塊介紹,包括前臺購書和后臺管理兩大部分。 訂單功能實(shí)現(xiàn)時,怎樣顯示同一訂單購物信息,通過傳遞訂單號和客戶名字,利用了數(shù)據(jù)庫的交叉連接。 本次課題 的 不足 之處 由于各
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1