Danh mục

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    
Jamona

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 IntroductionOverviewofWebApplicationDevelopmentIntroductiontoASP.NETMVCArchitectureofASP.NETMVCAppCreatinganASP.NETMVCProjectStructureofanASP.NETMVCProject OverviewofWebApplicationDevelopmentWebApplication  AreprogramsthatareexecutedonaWebserverandaccessed fromaWebbrowser.  AllowsyoutoshareandaccessinformationovertheInternet thatcanbeaccessedgloballyatanytime.  EnableyoutoperformcommercialtransactionsknownasE commerceapplication. WebApplicationLayersWebappsaretypicallydividedinto3layers:  Presentationlayer:Enableuserstointeractwiththeapp  Businesslogiclayer:Enablestocontroltheflowofexecution andcommunicationbetweenthepresentationlayeranddata layer.  Datalayer:EnablestoprovidetheappdatastoredinDBstothe businesslogiclayer. WebApplicationLayers Presentation BusinessLogic Layer Layer DataLayer WebAppArchitecturesArchitectureofanapplicationdependsonthesystem inwhichthelayersoftheapplicationaredistributed andcommunicatedtoeachother.Anapplicationcanbebasedononeofthefollowing typesofarchitectures:  Singletier:Inthisarchitecture,allthethreelayersare integratedtogetherandinstalledonasinglecomputer.  Twotier:Inthisarchitecture,thethreelayersaredistributed overtwotiers,aclientandaserver.  Threetier:Inthisarchitecture,thethreelayersofthe applicationaredistributedacrossdifferentcomputers.  Ntier:Inthisarchitecture,thecomponentsofthethreetierare TypesofWebPagesAWebappconsistsofWebpages.AWebpagecanbecategorizedonthefollowingtwo types:  StaticWebpage:ConsistofonlyHTMLtopresentcontentto users  DynamicWebpage:ConsistsofHTMLincombinationwith serversideandclientsidescriptstorespondtouseractions. EvolutionofASP.NETMVCASP.NETMVCisaframeworkfordeveloperdynamic Webappusingthe.NETFrameworkPriortoASP.NETMVC,dynamicWebappbasedon the.NETFrameworkweredevelopedusingthe following:  ASP.NETWebForms  ASP.NETWebPages ASP.NETApplicationsASP.NET  Isaserversidetechnologythatenablesyoutocreatedynamic Webapplicationsusingadvancedfeatures.  Arecomprisedof.aspxWebpagesthatcombinebothclient sideandserversidescriptstobuilddynamicWebsites.  AppcandeployedonaWebserversuchasIIS,whichisthe WebserverfortheWindowsplatform ASP.NETApplicationsTherequestresponseprocessforanASP.NETWeb pagecontainsthefollowingsteps:  BrowsersendsarequestforanASP.NETWebpage.  Whentherequestarrives,theIISserverinterceptstherequest, loadstherequestedfile,andforwardsittotheASP.NET runtimeforprocessing.  TheASP.NETruntimethatcontainstheASP.NETscriptengine processestherequestedASP.NETpageandgeneratesthe response.  TheIISserversendsbacktheresponsetotheWebserverthat requestedthepage. ASP.NETApplicationsFollowingfigureshowstherequestresponseflowfor anASP.NETWebpage: IISWebServer ASP.NETRuntime 1 2 Browser 3 4 ASP.NETWeb page ASP.NETWebFormsThetraditionalASP.NETWebappgraduallyevolved toASP.NETWebFormstosimplifydevelopmentof dynamicWebapp.InASP.NETWebForms:  YoucandraganddropUserInterface(UI)controlstodesign yourUI.  Youcanspecifyhowtheformanditscontrolshouldrespondat runtime.ASP.NETWebForms:  UsesacombinationofHTML,servercontrols,servercode,and allowsuserstorequestthroughbrowser. ASP.NETMVCBasedontheMVCdesignpatternthatallowsyouto developsoftwaresolutions.MVCdesignpattern:  AllowsyoutodevelopWebAppwithlooselycoupled components  Enableseparatingdataaccess,business,andpresentationlogic fromeachother.WhileusingtheMVCdesignpattern,aWebappcan bedividedintofollowingtypes:  Model:Representsinformationaboutadomainthatcanbethe appdataofaWebapp. ASP.NETMVCFollowingfigureshowst ...

Tài liệu được xem nhiều: