【正文】
前者是一次性將所有記錄都讀入內存然后再根據指示來依次做判斷分析從而達到分頁顯示的效果,而后者是先 根據指示做出判斷并將規(guī)定數(shù)目的符合查詢條件的記錄讀入內存,從而直接達到分頁顯示的功能。 本系統(tǒng)采用第 一種分頁顯示方法。 此方法即 是對 Recordset 的記錄進行操作。 操作思想如下:在服務器端把記錄集分成多個邏輯頁,并利用腳本設置一頁中記錄的數(shù)目,還可以設置記錄集號和設置其值,這就可以隨意地跳轉到某一個記錄集頁,同時還要記錄每個用戶的當前頁號。 相關代碼如下: Session 用戶登陸后,由于 HTTP 協(xié)議中不支持持續(xù)的跟蹤連接,服務器端每完 成一次客戶端的應用請求后將不再保持連接 , 因此某個 頁面執(zhí)行完成時,頁面中的變量和其他相關資料都破壞了。 登陸 用戶請求下一個頁面時,這個頁面提供的 用戶信息將全部失去。因此,需要找到一種方法,保存每個訪問者的狀態(tài)。 本系統(tǒng)采用 asp 技術中的 Session 對象來實現(xiàn)這個功能 。 Session 是 WEB 服務器用于存儲特定用戶信息的對象。其實現(xiàn)原理是:當客戶端啟動一個 Session 時, ASP 會自動生成一個 SessionID,并將該 SessionID 回送客戶端瀏覽器,而瀏覽器則將該 SessionID 保存在 Cookies 中。當客戶端再次向服務器發(fā)出 HTTP 請求時。 ASP 檢查申請表頭的該 SessionID,并回應相應該 SessionID 的該 Session 信息。 Session 對象的特點是其中存儲的信息對于同一個登錄用戶是全程可見的,但對不同的用戶是不可見的。因此在系統(tǒng)中可以用 Session 來保存一些使用頻率高的用戶信息。 Session 對象的另一個特點是具有時間限制。默認的有效期為 20 分鐘,即如果 20 分鐘內用戶無操作, Session 中的所有變量便自動被清空。用戶可以設置 Session 的有效期以滿足實際需要。 本系統(tǒng)中在用戶登錄成功登錄后,系統(tǒng)設置了以下 Session 變量以方便系統(tǒng)調用。 第 6 章 總結 經過一個多月的設計和開發(fā), 招聘就業(yè) 開發(fā)完畢。系統(tǒng)基本符合網站風格。后臺主要是網絡管理員登錄,進行新聞管理、企業(yè)信息管理、職位信息管理和應聘信息管理等,完全滿足了網站正常、安全的運行。前臺主要是后臺信息的管理,以及個人或企業(yè)用戶登錄發(fā)布或修改自己信息。 在整個設計過程中,出現(xiàn)過很多的問題,得到了老師和同學的幫助,在不斷學習的過程中我體會到: 作是一個不斷學習的過程, 從設計初的模糊認識到最后能夠順利完成,我體會到在實踐中學習的重要性。 由于開始時對系統(tǒng)缺乏整體認識,不具備軟件開發(fā)思想,對系統(tǒng)的功能需求分析的要求認識不夠清楚,使得后續(xù)的工作不得不經常返回去修改數(shù)據表和個別代碼。使我體會到在設計中的每一步的重要性,如果上一個步驟不能很好的完成,在后續(xù)的設計將會付出幾倍的代價。 在設計過程中,遇到很多困難,我學會通過別人的代碼理解語言的含義但這并不是抄襲,然后根據自己的設計要求編寫代碼。 設計過程中,由于要實現(xiàn)某些功能,網上資源解決了我的問題。 總之,通過這次設 計 ,我深刻體會到要做好一個完整的事情,需要有系統(tǒng)的思維方式和方法,對待一個新的問題,要耐心、要善于運用已有的資源來充實自己。同時我也深刻的認識到,在對待一個新事物時,一定要從整體考慮,完成一步之后再作下一步,這樣對于系統(tǒng)而言才能更加有效。就比如說在這次的設計,我不但對 ASP 和 ACCESS 有了深刻的認識,積累了使用軟件工程的思想來開發(fā)軟件的經驗,同時最重要的是摸索出了一套考慮問題和解決問題的方法,這對于我以后的學習受益匪淺。 參考文獻 [1]精銳創(chuàng)作組編著:《 ASP+網絡與數(shù)據庫整合應用》,人民郵電 出版社, 2021 年10月第 1 版。 [2]建蓮科技編著:《 ASP 建網策略與案例 賀卡篇》,科學出版社, 2021 年 2 月第1版。 [3]梁嘉超 孫明亮 主編:《動態(tài)網頁設計教程》,冶金工業(yè)出版社, 2021 年 8月第 1 版。 [4]駱耀祖 龔洵禹:《動態(tài)網頁設計教程》,中山大學出版社, 2021 年 6 月第 1版。 [5]鄧文淵 陳惠貞 陳俊榮:《 ASP 與網頁數(shù)據庫設計》,中國鐵道出版社, 2021年 2 月第 1版 [6] 紅亮 ,網絡編程 [M],北京 :中國書籍出版社 ,2021 年 07月 [8] 陳育松 ,實用網站建設技術 [M],北京 :清華大學出版社 ,2021 年 07 月 [9] 張星 ,網頁開發(fā)三合一教程 [M],北京 :中國宇航出版社 ,2021 年 04 月 [10] 丁貴廣 ,ASP 動態(tài)網站建站實例與技巧 [M],西安 :西安電子科技大學出版社 ,2021 年 05 月 [11] 鄧巖峰 ,DreamWeaver2021制作實例 [M],西安 :人民郵電出版社 ,2021年 09月 . [12] 王鵬,數(shù)據庫技術及其應用 [M],北京 :人民郵電出版社 , 2021 年 05 月 [13] 孫玉良 ,HTML 及 Web 網頁制作技術 [M],大連 :大連理工大學出版社 ,2021年 04 月 [14] 高志鵬 ,陳起 ,企業(yè)網站建設基礎 [M],北京 :清華大學出版社 ,1992 年 6 月第 2 版 [15] 王曰芬 ,丁晟春 ,電子商務網站設計與管理 [M],北京 :北京大學出版 ,2021年 9 月 [16] 張全澤 , 實用教程 [M],北京 :清華大學出版社 ,2021 年 04 月 [17] 王潭玉 ,深入 JavaScript 編程 [M],北京 :清華大學出版社 ,2021 年 01 月 致謝語 Anyway, I was here in Amber some years ago. Not doing much of anything. Just visiting and being a nuisance. Dad was still around, and when I noticed that he was getting into one of his grumpy moods, I decided it was time to take a walk. A long one. I had often noticed that his fondness for me tended to increase as an inverse function of my proximity. He gave me a fancy riding crop for a goingaway presentto hasten the process of affection, I suppose. Still, it was a very nice cropsilverchased, beautifully tooledand I made good use of it. I had decided to go looking for an assemblage of all my simple pleasures in one small nook of Shadow. It was a long rideI will not bore you with the detailsand it was pretty far from Amber, as such things go. This time, I was not looking for a place where I would be especially important. That can get either boring or difficult fairly quickly, depending on how responsible you want to be. I wanted to be an irresponsible nonentity and just enjoy myself. Texorami was a wide open port city, with sultry days and long nights, lots of good music, gambling around the cloc k, duels every morning and inbetween mayhem for those who couldn39。t wait. And the air currents were fabulous. I had a little red sail plane I used to go sky surfing in, every couple of days. It was the good life. I played drums till all hours in a basement spot up the rive r where the walls sweated almost as much as the customers and the smoke used to wash around the lights like streams of milk. When I was done playing I39。d go find some action, women, or cards, usually. A nd that was it for the rest of the night. Damn Eric, anywayl That reminds me again . . . He once accused me of cheating at cards, did you know that? And that39。s about the only thing I wouldn39。t cheat at. I ta ke my card playing seriously. I39。m good and I39。m also luc ky. Eric was neither. The trouble with him was that he was good at so many things he woul dn39。t admit even to himself that there were some things other people could do better. If you kept beating him at anything you had to be cheating. He started a nasty argument over it one nightcould have gotten seriousbut Gerard and Caine broke it up. G ive Caine that. He took my part that time. Poor guy . . . Hell of a way to go, you know? His throat . . . Well, anyhow, there I was in Texorami, making music and women, winning at cards and jockeying around the sky. Palm trees and nightblooming wallflowers. Lots of good port smellsspices, coffee, tar, saltyou know. Gentlefolk, merchants, and peons the same straights as in most other places. Sailors and assorted travelers passing in and out. Guys like me living around the edges of things. I spent a little over two years in Texorami, happy. Really. Not much contact with the others. Sort of postcard like hellos via the Trumps every now and then, and that was about it. Amber was pretty much off my mind. All this changed one night when I was sitting there with a fu ll house and the guy across from me was trying to make up his mind whether or not I was bluffing. The Jack of Diamonds began talking to me. Yes, that is how it started. I was in a weird frame of mind anyway. I had just finished a couple very hot sets and was stil