版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
B/S架構程序設計B/S架構、特點網(wǎng)絡數(shù)據(jù)庫應用?2007.03~2007.06一、概念網(wǎng)絡數(shù)據(jù)庫應用?2007.03~2007.06B/S(Browser/Server)結構即瀏覽器和服務器結構。它是隨著Internet技術的興起,對C/S結構的一種變化或者改進的結構。在這種結構下,用戶工作界面是通過WWW瀏覽器來實現(xiàn),極少部分事務邏輯在前端(Browser)實現(xiàn),但是主要事務邏輯在服務器端(Server)實現(xiàn),形成所謂三層3-tier結構。這樣就大大簡化了客戶端電腦載荷,減輕了系統(tǒng)維護與升級的成本和工作量,降低了用戶的總體成本(TCO)。二、特點網(wǎng)絡數(shù)據(jù)庫應用?2007.03~2007.06系統(tǒng)開發(fā)、維護和升級的經(jīng)濟性BS模式提供了一致的用戶界面BS模式具有很強的開放性BS模式的結構易于擴展BS模式具有更強的信息系統(tǒng)集成性BS模式提供靈活的信息交流和信息發(fā)布服務三、3-Tiers&MVC網(wǎng)絡數(shù)據(jù)庫應用?2007.03~2007.063-Tiers:對于基于數(shù)據(jù)庫的應用程序開發(fā)往往采用3層結構模型,即將數(shù)據(jù)表現(xiàn)層、業(yè)務邏輯層、數(shù)據(jù)存儲層三者分離處理。從而達到重用代碼的目的。數(shù)據(jù)表現(xiàn)層(Presentation)終端用戶可以看到和操作的界面。業(yè)務邏輯層(Business)處理復雜的業(yè)務邏輯,保證業(yè)務數(shù)據(jù)的正確和一致。數(shù)據(jù)存儲層(Data)處理來自業(yè)務邏輯層對數(shù)據(jù)的查詢與更新請求,并做到數(shù)據(jù)的持久化。三、3-Tiers&MVC網(wǎng)絡數(shù)據(jù)庫應用?2007.03~2007.063-Tiers:對于基于數(shù)據(jù)庫的應用程序開發(fā)往往采用3層結構模型,即將數(shù)據(jù)表現(xiàn)層、業(yè)務邏輯層、數(shù)據(jù)存儲層三者分離處理。從而達到重用代碼的目的。PresentationBusinessDataDB三、3-Tiers&MVC網(wǎng)絡數(shù)據(jù)庫應用?2007.03~2007.06MVC:對于基于Web和數(shù)據(jù)驅動的應用,將數(shù)據(jù)可視性、業(yè)務與數(shù)據(jù)模型、以及協(xié)調兩者的控制器分離處理,從而重用代碼。視圖(View)終端用戶可以看到和操作的界面??刂破?Controller)將視圖層請求派發(fā)給不同的模型,用來請求數(shù)據(jù)。模型(Model)處理來自視圖對數(shù)據(jù)的查詢與更新請求,實現(xiàn)業(yè)務邏輯,并做到數(shù)據(jù)的持久化。三、3-Tiers&MVC網(wǎng)絡數(shù)據(jù)庫應用?2007.03~2007.063-Tiers&MVC:重用代碼,提高系統(tǒng)適應性的機制。ViewControllerModelViewViewDB四、Asp.Net&B/S網(wǎng)絡數(shù)據(jù)庫應用?2007.03~2007.06ASP.Net:Microsoft?ASP.NETisasetoftechnologiesintheMicrosoft.NETFrameworkforbuildingWebapplicationsandXMLWebservices.ASP.NETpagesexecuteontheserverandgeneratemarkupsuchasHTML,WML,orXMLthatissenttoadesktopormobilebrowser.ASP.NETpagesuseacompiled,event-drivenprogrammingmodelthatimprovesperformanceandenablestheseparationofapplicationlogicanduserinterface.四、Asp.Net&B/S網(wǎng)絡數(shù)據(jù)庫應用?2007.03~2007.06ASP.Net:Microsoft?ASP.NETisasetoftechnologiesintheMicrosoft.NETFrameworkforbuildingWebapplicationsandXMLWebservices.B/SWebASP.Net基于瀏覽器的應用五、Asp.Net&MVC網(wǎng)絡數(shù)據(jù)庫應用?2007.03~2007.06ASP.Net:Microsoft?ASP.NETisasetoftechnologiesintheMicrosoft.NETFrameworkforbuildingWebapplicationsandXMLWebservices.MVC:對于基于Web和數(shù)據(jù)驅動的應用,將數(shù)據(jù)可視性、業(yè)務與數(shù)據(jù)模型、以及協(xié)調兩者的控制器分離處理,從而重用代碼。MVCASP.Net五、Asp.Net&MVC網(wǎng)絡數(shù)據(jù)庫應用?2007.03~2007.06Page.aspxPage.aspx.csTableAdpaterDataSetViewControllerModel六、Asp.Net&3-Tiers網(wǎng)絡數(shù)據(jù)庫應用?2007.03~2007.06ASP.Net:Microsoft?ASP.NETisasetoftechnologiesintheMicrosoft.NETFrameworkforbuildingWebapplicationsandXMLWebservices.3-TiersASP.Net3-Tiers:對于基于數(shù)據(jù)庫的應用程序開發(fā)往往采用3層結構模型,即將數(shù)據(jù)表現(xiàn)層、業(yè)務邏輯層、數(shù)據(jù)存儲層三者分離處理。從而達到重用代碼的目的。六、Asp.Net&3-Tiers網(wǎng)絡數(shù)據(jù)庫應用?2007.03~2007.06ObjectDataSourceControlTableAdpaterDataSetPresentationBusinessDataPresentationControls七、Asp.Net2.0網(wǎng)絡數(shù)據(jù)庫應用?2007.03~2007.06ASP.Net2.0:Microsoft?ASP.NET,thenewerversion.CodeModel:Page.aspxPage.aspx.csCode-Behind:將頁面控制邏輯推到后臺的代碼文件執(zhí)行.且頁面是繼承自后臺的代碼文件中定義的頁面類的.Sample<%@PageLanguage="C#"AutoEventWireup="true"CodeFile="Default.aspx.cs"Inherits="_Default"%>publicpartialclass_Default:System.Web.UI.Page七、Asp.Net2.0網(wǎng)絡數(shù)據(jù)庫應用?2007.03~2007.06ASP.Net2.0:Microsoft?ASP.NET,thenewerversion.CodeModel:Page.aspxPage.aspx.csControls:將用戶操作和數(shù)據(jù)展現(xiàn)封裝在一個頁面控件中,并用標簽定義控件<asp:xxxx></asp:xxxx>Events-Driven:將用戶與頁面的交互過程按照事件驅動方式傳遞給后臺處理.Sample七、Asp.Net2.0網(wǎng)絡數(shù)據(jù)庫應用?2007.03~2007.06ASP.Net2.0:Microsoft?ASP.NET,thenewerversion.Data-Driven:PresentationControlsObjectDataSourceControlTableAdpaterDataSetDBSample八、Asp.Net2.0Pages網(wǎng)絡數(shù)據(jù)庫應用?2007.03~2007.06ASP.Net2.0Pages:Microsoft?ASP.NET,thecontainerofmarkedhtml&controls.Itisfinallyexplainedhtmlpages.Components:Page指令HtmlScript聲明塊Script呈現(xiàn)塊Controls標記塊Others…八、Asp.Net2.0Pages網(wǎng)絡數(shù)據(jù)庫應用?2007.03~2007.06ASP.Net2.0Pages:Microsoft?ASP.NET,thecontainerofmarkedhtml&controls.Itisfinallyexplainedhtmlpages.LifeCycleInitProcessLoadProcessRenderProcessSavePageStateProcessUnloadProcess八、Asp.Net2.0Pages網(wǎng)絡數(shù)據(jù)庫應用?2007.03~2007.06ASP.Net2.0Pages:Microsoft?ASP.NET,thecontainerofmarkedhtml&controls.Itisfinallyexplainedhtmlpages.LifeCycle初次頁請求:IsPostBack=false回發(fā)頁請求:IsPostBack=trueThepagefirstloads.Thepagereloads.Universally,itisinvokedbythecontrolspostbacking.八、Asp.Net2.0Pages網(wǎng)絡數(shù)據(jù)庫應用?2007.03~2007.06ASP.Net2.0Pages:Microsoft?ASP.NET,thecontainerofmarkedhtml&controls.Itisfinallyexplainedhtmlpages.LifeCycle頁視圖狀態(tài)ViewstateSavethepageandcontrolsinthepagepropertiesforrestoringtheminprocessofreloadingpage.Itisjustahiddeninputdomaininhtmlpage.八、Asp.Net2.0Pages網(wǎng)絡數(shù)據(jù)庫應用?2007.03~2007.06ASP.Net2.0Pages:Microsoft?ASP.NET,thecontainerofmarkedhtml&controls.Itisfinallyexplainedhtmlpages.LifeCycle頁視圖狀態(tài)ViewstateStaticStateThepropertiesofcontrolaresetbydesigning.TheyarerestoredbeforePageInit.八、Asp.Net2.0Pages網(wǎng)絡數(shù)據(jù)庫應用?2007.03~2007.06ASP.Net2.0Pages:Microsoft?ASP.NET,thecontainerofmarkedhtml&controls.Itisfinallyexplainedhtmlpages.LifeCycle頁視圖狀態(tài)Viewstate(2)DynamicStateThepropertiesofcontrolaresetbyruntiming.TheyarerestoredbeforePageLoad.八、Asp.Net2.0Pages網(wǎng)絡數(shù)據(jù)庫應用?2007.03~2007.06ASP.Net2.0Pages:Microsoft?ASP.NET,thecontainerofmarkedhtml&controls.Itisfinallyexplainedhtmlpages.LifeCycleInitProcessPreInitInitInitCompleteHasconstructedcontrolsandcanusethemNotrestorethedynamicstate(Viewstate)ApplythepageThemes八、Asp.Net2.0Pages網(wǎng)絡數(shù)據(jù)庫應用?2007.03~2007.06ASP.Net2.0Pages:Microsoft?ASP.NET,thecontainerofmarkedhtml&controls.Itisfinallyexplainedhtmlpages.LifeCycleLoadProcessPreLoadLoadControlEventsHasrestoredallstatesUsingthecontrolsLoadComplete八、Asp.Net2.0Pages網(wǎng)絡數(shù)據(jù)庫應用?2007.03~2007.06ASP.Net2.0Pages:Microsoft?ASP.NET,thecontainerofmarkedhtml&controls.Itisfinallyexplainedhtmlpages.LifeCycleRenderProcessPreRenderDataBindProcessPreRenderCompleteCandecidethepropertiesofcontrolsUsingthecontrols’finalstates八、Asp.Net2.0Pages網(wǎng)絡數(shù)據(jù)庫應用?2007.03~2007.06ASP.Net2.0Pages:Microsoft?ASP.NET,thecontainerofmarkedhtml&controls.Itisfinallyexplainedhtmlpages.LifeCycleSavePageStatesProcessSaveStateCompleteResponse
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 插圖在小學課本的互動教學作用
- 個性化彩繪協(xié)議規(guī)范文檔2024年版
- 教育機構客戶服務流程的個性化改造
- 數(shù)字化時代的學習心理變革
- 二零二五年度鏟車租賃與道路施工許可證合同3篇
- 教育視域下的學生心理健康挑戰(zhàn)與對策分析
- 網(wǎng)絡安全教育構建孩子信息安全防線
- 漯河2024年河南漯河市立醫(yī)院(漯河市骨科醫(yī)院漯河醫(yī)專二附院)招聘高層次人才筆試歷年參考題庫附帶答案詳解
- 漯河2024年河南漯河市中醫(yī)院招聘高層次人才5人筆試歷年參考題庫附帶答案詳解
- 湖北2025年湖北武漢理工大學專職輔導員招聘筆試歷年參考題庫附帶答案詳解
- 電工中級工練習題庫(含參考答案)
- 學校幫扶工作計劃
- 期末綜合試卷(試題)2024-2025學年人教版數(shù)學五年級上冊(含答案)
- UL2034標準中文版-2017一氧化碳報警器UL中文版標準
- 感恩的心培訓資料
- 《精密板料矯平機 第3部分:精度》
- (完整版)水利部考試歷年真題-水利基礎知識試題集
- 浙江省杭州市2024-2025學年高三上學期一模英語試題(含解析無聽力原文及音頻)
- 2024年廣東省公務員考試《行測》真題及答案解析
- 個人頂賬房合同范例
- 安徽省淮南四中2025屆高二上數(shù)學期末統(tǒng)考模擬試題含解析
評論
0/150
提交評論