【正文】
if (customerId != null) {//如果是注冊用戶,把用臨時(shí)帳號記錄的 數(shù)據(jù)移到正式帳號上。 圖 48 評論頁面 。 } 圖 49 添加到購物車頁面 ,在 Page_Load事件中使用了 重 定 向 頁 面 , 這 樣 頁 面 在 加 載 完 后 就 離 開 轉(zhuǎn) 移 到,所以 該頁面一般感覺不到存在,不向用戶顯示該頁面主要是為了防止用戶刷新時(shí)代碼重復(fù)計(jì)算。 // Wrap in try/catch block to catch errors in the event that someone types in // an invalid value for quantity int quantity。 研究電子商務(wù)相關(guān)的各種理論知識,主要包括:電子商務(wù)的基礎(chǔ)知識、電子商務(wù)的框架結(jié)構(gòu)和系統(tǒng)組成。 36 參考文獻(xiàn) [1]楊世錫,趙輝 .《 ASP+SQL Server動(dòng)態(tài)網(wǎng)站開發(fā) 》 .北京:電子工業(yè)出版社 , 20xx [2]龍馬工作室 . 《 ASP+SQL Server組建動(dòng)態(tài)網(wǎng)站實(shí)例精講 — 企業(yè)網(wǎng)站篇 》 .北京:人民郵電出版社, 20xx [3]啟明工作室 . 《 ASP+SQL Server網(wǎng)絡(luò)應(yīng)用系統(tǒng)開發(fā)與實(shí)例 》 . 北京:人民郵電出版社, 20xx [4]陳益材,譚英明 . 《 企業(yè)網(wǎng)站完美設(shè)計(jì)與制作 》 . 北京:人民郵電出版社, 20xx [5]盧鎮(zhèn)海 ,李青 ,段明輝 . 《 ASP編程實(shí)例入門與提高 》 . 北京:電子工業(yè)出版社,20xx [6]Shelley Powers. 《 ASP組件開發(fā)指南 》 .北京 :中國電力出版社 ,20xx [7]陳永強(qiáng) ,謝維成 ,李茜 . 《 ASP數(shù)據(jù)庫開發(fā)經(jīng)典實(shí)例精解 》 .北京 :機(jī)械工業(yè)出版社 ,20xx [8]陳學(xué)平 . 《 電子商 務(wù)網(wǎng)站建設(shè)與全程實(shí)例 》 .北京 :北京科海電子出版社 ,20xx [9]陳建華 ,李美軍 ,施建強(qiáng) . 《 ASP動(dòng)態(tài)網(wǎng)站開發(fā)教程 (第二版 ) 》 .北京 :清華大學(xué)出版社 ,20xx [10] James R. Groff,Paul N. Weinberg. 《 SQL:The Complete Reference Second Edition 》 37 致 謝 我要衷心感謝我的指導(dǎo)老師 ***對我的悉心指導(dǎo)和幫助鼓勵(lì) 38 外文資料原文 The database market longterm development tendency is enable the database to hold the important small space in the entire data processing system structure. In front of the relational database system only solves the basic data storage and the retrieval question, the application procedure only is responsible for the calendar database the route, the classification and the access, as well as solution all data processing question. Along with there lational database and SQL being published, DBMS starts there ponsibility which expands it to shoulder. The database search and the classified characteristic are inlaid by in SQL language and provides by DBMS, simultaneously provides also has piles the data the characteristic. Now demonstrated the calendar database no longer needed to pass through the database the route, the afterwards SQL improvement characteristic like main key character, outside key character and forced to inspect, then continued to impel this tendency development, they have taken over control the data inspection and the data integrity characteristic, these characteristics in the early SQL realization process still were the responsibilities which the application procedure had to undertake. In each advance process, DBMS all undertook more responsibilities to provide a more centralized domination and to reduce as far as possible as a result of the application program error causes the possibility which the data collapsed. In many largescale panies and the anization interior information technology (IT) in the department, this kind of DBMS development tendency and pany39。 因?yàn)橄到y(tǒng)分析時(shí)間倉促,又因?yàn)楸救说脑O(shè)計(jì)理念有限,所以該平臺難免會有錯(cuò)誤和不足之處,還請各位領(lǐng)導(dǎo)和老師批評,指正。 i 。 = BookImages/ + 。 ()。 登錄入口 取得用戶名和密碼 將 UserID 存入 session 中 查詢用戶是否存在 核對密碼是否正確 登錄成功 是 是 否 否 24 圖 45 代碼 417 : private void LoginBtn_Click(object sender, e) {// 只有頁面有效才進(jìn)行處理 if ( == true) {//保存現(xiàn)在購物車 ShoppingCartDB shoppingCart = new ShoppingCartDB()。 } else { //返回客戶注冊時(shí)的 ID 20 return ()。 // 為存儲過程增加參數(shù)。 = 。 SqlParameter parameterCustomerSex = new SqlParameter(CustomerSex, , 2)。 這樣就實(shí)現(xiàn)了應(yīng)用程序和數(shù)據(jù)庫之間的數(shù)據(jù)傳遞。通過 CustomerDetail 存儲過程執(zhí)行對數(shù)據(jù)庫的操作。 但這里要提一下 CustomerID 列定義相應(yīng)的變量 。在頁面搜索時(shí),通過搜索圖書名稱、圖書 ISBN 和圖書的描述中有沒有搜索關(guān)鍵字來返回運(yùn)行結(jié)果 BooksMostPopular 該存儲 過程返回暢銷書 代碼 41 列出了 BooksMostPopular 存儲過程: CREATE Procedure BooksMostPopular AS 13 SELECT TOP 5 , SUM() as TotalNum, FROM OrderDetails INNER JOIN Books ON = GROUP BY , ORDER BY TotalNum DESC 該存儲過程首先選擇 和 相匹配的圖書,并按照 BookID 和 BookName 分組。 如 果用戶未注冊 而進(jìn)行購買圖書也是允許的,系統(tǒng)自動(dòng)生成一個(gè)隨機(jī)字符串來進(jìn)行記錄,以便用戶結(jié)帳時(shí),把購物車上的圖書轉(zhuǎn)移到正式賬號上。 圖中下層是上層工作的基礎(chǔ),也可以說上層通過接口使用下層提供的服務(wù)。 下面簡單介紹 IIS 的 功能和安裝 : IIS 是 Inter Information Server(網(wǎng)絡(luò)信息服務(wù))的簡稱,簡單地書就是在 Inter 上發(fā)布信息的 Web 服務(wù)器。再加上電子商務(wù)的日益趨于成熟,將改變整個(gè)圖書業(yè)的傳統(tǒng)業(yè)務(wù)流程。 據(jù)一家媒體的調(diào)查,能夠買到書且 服務(wù)到位的也只有大洋網(wǎng)、旌旗席殊等幾家。就網(wǎng)上商店來說,網(wǎng)上書店是目前應(yīng)用最廣、最成功的典范之一。 隨著網(wǎng)絡(luò)的普及,人們生活水平的提高,業(yè)余生活也變得豐富多彩,網(wǎng)上購書成為一種時(shí)尚。 我國 最早的網(wǎng)上書店是由上海圖書城投資 50萬元於 1998年底成立的上海網(wǎng)上書城,該網(wǎng)站經(jīng)理李列群坦言,運(yùn)營 初期 業(yè)績很不理想, 網(wǎng)上書城的交易額還不到整個(gè)上海圖書城交易額的千分之一。使出版業(yè)與網(wǎng)絡(luò)結(jié)合,并形成良性的互動(dòng)關(guān)系,網(wǎng)絡(luò)因出版而充分,出版因 網(wǎng)絡(luò)而廣開渠源,可以解決國內(nèi)出版業(yè)與國際出版業(yè)之間的不平衡問題,加快我國的出版業(yè)向世界先進(jìn)水平靠攏。 IIS 通過使用超文本傳輸協(xié)議( HTTP)傳輸信息,并將信息加載到網(wǎng)站上,當(dāng)然還可以配置 IIS 提供文件傳輸協(xié)議( FTP)服務(wù),以便于信息的發(fā)布和資源的共享。具體實(shí)現(xiàn)是從數(shù)據(jù)庫設(shè)計(jì)開始的。 另外, Quantity 記錄每次購物的數(shù)量,在設(shè)計(jì)數(shù)據(jù)庫時(shí),默認(rèn)將該值設(shè)置為1, 以減少用戶的輸入。通過 DESC 將圖書按照銷售量降序排列,利用TOP5 返回前 5 本圖書,這樣就實(shí)現(xiàn)了“暢銷書”。 因?yàn)樵跀?shù)據(jù)庫設(shè)計(jì)中通常利用一個(gè)自增的 ID 作為表的主鍵,這個(gè) ID 是 SQL Server 自動(dòng)維護(hù)的。 ④ 數(shù)據(jù)庫連接和數(shù)據(jù)庫執(zhí)行的參數(shù)都準(zhǔn)備好了,下一步就打開數(shù)據(jù)庫執(zhí)行命令。 ⒉ 更新數(shù)據(jù)庫 當(dāng)應(yīng)用程序添加、刪除或更改了用戶信息,就需要把更改后的數(shù)據(jù)保存到數(shù)據(jù)庫中。 = CustomerSex。 (parameterCustomerID)。 SqlParameter parameterEmail = new SqlParameter(Email, , 50)。 } } 頁面設(shè)計(jì)與實(shí)現(xiàn) 系統(tǒng)功能模塊圖 主頁面 主頁面由 , 主要是起頁面導(dǎo)航功能,顯示給用戶本系統(tǒng)主要有什么內(nèi)容。 String tempCartID = ()。 } 26 圖 46 圖書詳情頁面 ,主要由 HTML代碼組成,在隱藏文件中通過另外頁面?zhèn)鬟f過來的 BookID參數(shù)進(jìn)行顯示。 = ?BookID= + BookID。 i++) { // Obtain references to row39。 心得與收獲 代碼理解不難,主要是開發(fā)思想的建立 圖書電子交易系統(tǒng)屬于電子商 務(wù)購物系統(tǒng)范疇,難點(diǎn)和重點(diǎn)是 購物車功能和訂單功能的實(shí)現(xià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 constitut