
Bài giảng Lập trình web: ASP.NET MVC - Nguyễn Hà Giang
Thông tin tài liệu:
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 projectTài liệu có liên quan:
-
161 trang 139 1 0
-
[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 137 0 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 124 1 0 -
MỘT SỐ ĐIỂM CẦN CHÚ Ý KHI THIẾT KẾ WEB
5 trang 118 0 0 -
GIÁO TRÌNH LẬP TRÌNH WEB_PHẦN 2_BÀI 3
3 trang 110 0 0 -
Lập Trình Web: Các trang quản trị trong PHP - GV: Trần Đình Nghĩa
8 trang 108 0 0 -
231 trang 99 1 0
-
101 trang 97 2 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 69 1 0 -
Bài giảng Lập trình web bài 2: Làm quen với công cụ vẽ và sử dụng Symbol bảng Library
51 trang 58 0 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 56 0 0 -
Lập trình web bằng cơ sở dữ liệu MySQL 5.1 và PHP 5.3: Phần 1
136 trang 47 1 0 -
Tạo mạng xã hội với PHP - part 43
10 trang 46 0 0 -
Bài giảng Thiết kế và lập trình Web - Bài 5: PHP cơ bản
137 trang 44 0 0 -
Giáo trình môn học/mô đun: Lập trình web với ASP.NET: Phần 2
42 trang 43 0 0 -
Lecture Introduction to web engineering - Lec 7: Web application architecture
33 trang 43 0 0 -
Lecture Introduction to web engineering - Lec 6: Modeling web applications
28 trang 43 0 0 -
Hướng dẫn thiết kế template joomla 1.5
10 trang 43 0 0 -
Bài giảng Lập trình web nâng cao: Chương 1 - Trường ĐH Văn Hiến
16 trang 41 1 0 -
Bài giảng Thiết kế và lập trình Web - Bài 8: PHP - MySQL
59 trang 40 0 0