Bài giảng Lập trình web: ASP.NET MVC - Nguyễn Hà Giang
Số trang: 33
Loại file: pptx
Dung lượng: 343.88 KB
Lượt xem: 19
Lượt tải: 0
Xem trước 4 trang đầu tiên của tài liệu này:
Thông tin tài liệu:
Những nội dung chính trong chương gồm: Overview of Web Application Development, introduction to ASP.NET MVC, architecture of ASP.NET MVC App, creating an ASP.NET MVC Project, structure of an ASP.NET MVC Project. Mời các bạn tham khảo.
Nội dung trích xuất từ tài liệu:
Bài giảng Lập trình web: ASP.NET MVC - Nguyễn Hà GiangASP.NETMVC NguyenHaGiang IntroductionOverviewofWebApplicationDevelopmentIntroductiontoASP.NETMVCArchitectureofASP.NETMVCAppCreatinganASP.NETMVCProjectStructureofanASP.NETMVCProject OverviewofWebApplicationDevelopmentWebApplication AreprogramsthatareexecutedonaWebserverandaccessed fromaWebbrowser. AllowsyoutoshareandaccessinformationovertheInternet thatcanbeaccessedgloballyatanytime. EnableyoutoperformcommercialtransactionsknownasE commerceapplication. WebApplicationLayersWebappsaretypicallydividedinto3layers: Presentationlayer:Enableuserstointeractwiththeapp Businesslogiclayer:Enablestocontroltheflowofexecution andcommunicationbetweenthepresentationlayeranddata layer. Datalayer:EnablestoprovidetheappdatastoredinDBstothe businesslogiclayer. WebApplicationLayers Presentation BusinessLogic Layer Layer DataLayer WebAppArchitecturesArchitectureofanapplicationdependsonthesystem inwhichthelayersoftheapplicationaredistributed andcommunicatedtoeachother.Anapplicationcanbebasedononeofthefollowing typesofarchitectures: Singletier:Inthisarchitecture,allthethreelayersare integratedtogetherandinstalledonasinglecomputer. Twotier:Inthisarchitecture,thethreelayersaredistributed overtwotiers,aclientandaserver. Threetier:Inthisarchitecture,thethreelayersofthe applicationaredistributedacrossdifferentcomputers. Ntier:Inthisarchitecture,thecomponentsofthethreetierare TypesofWebPagesAWebappconsistsofWebpages.AWebpagecanbecategorizedonthefollowingtwo types: StaticWebpage:ConsistofonlyHTMLtopresentcontentto users DynamicWebpage:ConsistsofHTMLincombinationwith serversideandclientsidescriptstorespondtouseractions. EvolutionofASP.NETMVCASP.NETMVCisaframeworkfordeveloperdynamic Webappusingthe.NETFrameworkPriortoASP.NETMVC,dynamicWebappbasedon the.NETFrameworkweredevelopedusingthe following: ASP.NETWebForms ASP.NETWebPages ASP.NETApplicationsASP.NET Isaserversidetechnologythatenablesyoutocreatedynamic Webapplicationsusingadvancedfeatures. Arecomprisedof.aspxWebpagesthatcombinebothclient sideandserversidescriptstobuilddynamicWebsites. AppcandeployedonaWebserversuchasIIS,whichisthe WebserverfortheWindowsplatform ASP.NETApplicationsTherequestresponseprocessforanASP.NETWeb pagecontainsthefollowingsteps: BrowsersendsarequestforanASP.NETWebpage. Whentherequestarrives,theIISserverinterceptstherequest, loadstherequestedfile,andforwardsittotheASP.NET runtimeforprocessing. TheASP.NETruntimethatcontainstheASP.NETscriptengine processestherequestedASP.NETpageandgeneratesthe response. TheIISserversendsbacktheresponsetotheWebserverthat requestedthepage. ASP.NETApplicationsFollowingfigureshowstherequestresponseflowfor anASP.NETWebpage: IISWebServer ASP.NETRuntime 1 2 Browser 3 4 ASP.NETWeb page ASP.NETWebFormsThetraditionalASP.NETWebappgraduallyevolved toASP.NETWebFormstosimplifydevelopmentof dynamicWebapp.InASP.NETWebForms: YoucandraganddropUserInterface(UI)controlstodesign yourUI. Youcanspecifyhowtheformanditscontrolshouldrespondat runtime.ASP.NETWebForms: UsesacombinationofHTML,servercontrols,servercode,and allowsuserstorequestthroughbrowser. ASP.NETMVCBasedontheMVCdesignpatternthatallowsyouto developsoftwaresolutions.MVCdesignpattern: AllowsyoutodevelopWebAppwithlooselycoupled components Enableseparatingdataaccess,business,andpresentationlogic fromeachother.WhileusingtheMVCdesignpattern,aWebappcan bedividedintofollowingtypes: Model:Representsinformationaboutadomainthatcanbethe appdataofaWebapp. ASP.NETMVCFollowingfigureshowst ...
Nội dung trích xuất từ tài liệu:
Bài giảng Lập trình web: ASP.NET MVC - Nguyễn Hà GiangASP.NETMVC NguyenHaGiang IntroductionOverviewofWebApplicationDevelopmentIntroductiontoASP.NETMVCArchitectureofASP.NETMVCAppCreatinganASP.NETMVCProjectStructureofanASP.NETMVCProject OverviewofWebApplicationDevelopmentWebApplication AreprogramsthatareexecutedonaWebserverandaccessed fromaWebbrowser. AllowsyoutoshareandaccessinformationovertheInternet thatcanbeaccessedgloballyatanytime. EnableyoutoperformcommercialtransactionsknownasE commerceapplication. WebApplicationLayersWebappsaretypicallydividedinto3layers: Presentationlayer:Enableuserstointeractwiththeapp Businesslogiclayer:Enablestocontroltheflowofexecution andcommunicationbetweenthepresentationlayeranddata layer. Datalayer:EnablestoprovidetheappdatastoredinDBstothe businesslogiclayer. WebApplicationLayers Presentation BusinessLogic Layer Layer DataLayer WebAppArchitecturesArchitectureofanapplicationdependsonthesystem inwhichthelayersoftheapplicationaredistributed andcommunicatedtoeachother.Anapplicationcanbebasedononeofthefollowing typesofarchitectures: Singletier:Inthisarchitecture,allthethreelayersare integratedtogetherandinstalledonasinglecomputer. Twotier:Inthisarchitecture,thethreelayersaredistributed overtwotiers,aclientandaserver. Threetier:Inthisarchitecture,thethreelayersofthe applicationaredistributedacrossdifferentcomputers. Ntier:Inthisarchitecture,thecomponentsofthethreetierare TypesofWebPagesAWebappconsistsofWebpages.AWebpagecanbecategorizedonthefollowingtwo types: StaticWebpage:ConsistofonlyHTMLtopresentcontentto users DynamicWebpage:ConsistsofHTMLincombinationwith serversideandclientsidescriptstorespondtouseractions. EvolutionofASP.NETMVCASP.NETMVCisaframeworkfordeveloperdynamic Webappusingthe.NETFrameworkPriortoASP.NETMVC,dynamicWebappbasedon the.NETFrameworkweredevelopedusingthe following: ASP.NETWebForms ASP.NETWebPages ASP.NETApplicationsASP.NET Isaserversidetechnologythatenablesyoutocreatedynamic Webapplicationsusingadvancedfeatures. Arecomprisedof.aspxWebpagesthatcombinebothclient sideandserversidescriptstobuilddynamicWebsites. AppcandeployedonaWebserversuchasIIS,whichisthe WebserverfortheWindowsplatform ASP.NETApplicationsTherequestresponseprocessforanASP.NETWeb pagecontainsthefollowingsteps: BrowsersendsarequestforanASP.NETWebpage. Whentherequestarrives,theIISserverinterceptstherequest, loadstherequestedfile,andforwardsittotheASP.NET runtimeforprocessing. TheASP.NETruntimethatcontainstheASP.NETscriptengine processestherequestedASP.NETpageandgeneratesthe response. TheIISserversendsbacktheresponsetotheWebserverthat requestedthepage. ASP.NETApplicationsFollowingfigureshowstherequestresponseflowfor anASP.NETWebpage: IISWebServer ASP.NETRuntime 1 2 Browser 3 4 ASP.NETWeb page ASP.NETWebFormsThetraditionalASP.NETWebappgraduallyevolved toASP.NETWebFormstosimplifydevelopmentof dynamicWebapp.InASP.NETWebForms: YoucandraganddropUserInterface(UI)controlstodesign yourUI. Youcanspecifyhowtheformanditscontrolshouldrespondat runtime.ASP.NETWebForms: UsesacombinationofHTML,servercontrols,servercode,and allowsuserstorequestthroughbrowser. ASP.NETMVCBasedontheMVCdesignpatternthatallowsyouto developsoftwaresolutions.MVCdesignpattern: AllowsyoutodevelopWebAppwithlooselycoupled components Enableseparatingdataaccess,business,andpresentationlogic fromeachother.WhileusingtheMVCdesignpattern,aWebappcan bedividedintofollowingtypes: Model:Representsinformationaboutadomainthatcanbethe appdataofaWebapp. ASP.NETMVCFollowingfigureshowst ...
Tìm kiếm theo từ khóa liên quan:
Lập trình web Bài giảng Lập trình web Web application Web application development ASP.NET MVC app ASP.NET MVC projectGợi ý tài liệu liên quan:
-
[Thảo luận] Học PHP như thế nào khi bạn chưa biết gì về lập trình?
5 trang 127 0 0 -
161 trang 126 1 0
-
Bài giảng Lập trình web nâng cao: Chương 8 - Trường ĐH Văn Hiến
36 trang 105 1 0 -
GIÁO TRÌNH LẬP TRÌNH WEB_PHẦN 2_BÀI 3
3 trang 100 0 0 -
MỘT SỐ ĐIỂM CẦN CHÚ Ý KHI THIẾT KẾ WEB
5 trang 95 0 0 -
231 trang 88 1 0
-
101 trang 84 2 0
-
Lập Trình Web: Các trang quản trị trong PHP - GV: Trần Đình Nghĩa
8 trang 79 0 0 -
Bài giảng Lập trình web nâng cao: Chương 7 - Trường ĐH Văn Hiến
16 trang 64 1 0 -
Bài giảng Lập trình Web ASP.Net với C#: Chương 9 - Th.S Phạm Đào Minh Vũ
55 trang 46 0 0