Professional Documents
Culture Documents
NET
MVC4WebApplications
Module1:ExploringASP.NETMVC4Thegoalofthismoduleistooutlinetothestudentsthecomponentsof
theMicrosoftWebTechnologiesstack,whichcanbeusedtohostacompletedwebapplication.Studentswill
alsolearnaboutASP.NET4.5andbeintroducedtothewebforms,webpages,andMVCprogrammingmodels.
FinallytheywillseeanoverviewofASP.NETMVC4,includingnewfeaturesandconfiguration.Lessons
OverviewofMicrosoftWebTechnologies
OverviewofASP.NET4.5
IntroductiontoASP.NETMVC4
Lab:ExploringASP.NETMVC4
Aftercompletingthismodule,studentswillbeableto:
describetheMicrosoftWebTechnologiesstackandselectanappropriatetechnologytousetodevelop
anygivenapplication.
Module2:DesigningASP.NETMVC4WebApplicationsThegoalofthismoduleistointroducestudentstothe
typicaldesignprocessthatarchitectsmustcompletewhentheyplananMVC4application.Atthisstageinthe
designprocess,MVC4hasbeenselectedasthemostappropriateprogrammingmodel,butthedetailsofthe
application,suchastheoverallarchitecture,Controllers,Views,Models,androutestocreate,havenotbeen
fixed.Howtoplansuchdetailsisshownduringthismodule.Lessons
PlanningintheProjectDesignPhase
DesigningModels,Controllers,andViews
Lab:DesigningASP.NETMVC4WebApplications
Aftercompletingthismodule,studentswillbeableto:
designthearchitectureandimplementationofawebapplicationthatwillmeetasetoffunctional
requirements,userinterfacerequirements,andaddressbusinessmodels.
Module3:DevelopingASP.NETMVC4Models
ThegoalofthismoduleistoenablethestudentstocreateModelswithinanMVCapplicationthatimplementthe
businesslogicnecessarytosatisfybusinessrequirements.Themodulealsodescribeshowtoimplementa
connectiontoadatabase,oralternativedatastore,usingtheEntityFrameworkandLINQ.
Lessons
CreatingMVCModels
WorkingwithData
Lab:DevelopingASP.NETMVC4Models
Aftercompletingthismodule,studentswillbeableto:
createMVCModelsandwritecodethatimplementsbusinesslogicwithinModelmethods,properties,
andevents.
Module4:DevelopingASP.NETMVC4ControllersThegoalofthismoduleistoenablestudentstoadd
ControllerstoMVCapplicationsandtoimplementactionsthatrespondtouserinputandotherevents.The
studentswilllearnhowControllersrelatetoModelsandhowtoimplementControlleractionsthatdefinethe
Viewusedtodisplayoreditdata.Thismodulealsocovershowtowriteactionfiltersthatruncodebeforeor
aftermultipleactionsintheController.Thestudentswilllearnaboutsituationswhenactionfiltersare
useful.Lessons
WritingControllersandActions
WritingActionFilters
Lab:DevelopingASP.NETMVC4Controllers
Aftercompletingthismodule,studentswillbeableto:
addControllerstoanMVCApplicationtomanageuserinteraction,updatemodels,andselectand
returnViews.
Module5:DevelopingASP.NETMVC4ViewsThegoalofthismoduleistodescribetheroleofViewsinan
MVCwebapplicationandenableuserstocreateandcodethem.ThesyntaxofaRazorViewisofcritical
importanceforstudentstounderstandbecauseitdefinesboththelayoutandthefunctionalityofthedatadisplay.
HTMLHelperswillalsobediscussedindetailandcommonHelpers,suchasHtml.ActionLink()and
Html.EditorFor(),willbedescribed.ReusingcodebydefiningPartialViewsandRazorHelperswillbe
discussedaswell.Lessons
CreatingViewswithRazorSyntax
UsingHTMLHelpers
ReusingCodeinViews
Lab:DevelopingASP.NETMVC4Views
Aftercompletingthismodule,studentswillbeableto:
createViewsinanMVCapplicationthatdisplayandeditdataandinteractwithModelsand
Controllers.
Module6:TestingandDebuggingASP.NETMVC4WebApplicationsThegoalofthismoduleistoenable
studentstoincreasetheresilienceandqualityofanapplicationbylocatingandcorrectingcodeerrors,bugs,and
otherunexpectedresults.MVCapplicationsarewellsuitedtounittestingtechniquesandthesetechniquesensure
ahighqualityofcodebysystematicallytestingthefunctionalityofeachsmallcomponent.Inadditionthe
debuggingtoolsandexceptionhandlingavailableinVisualStudiowillbeexplained.Lessons
UnitTestingMVCComponents
ImplementinganExceptionHandlingStrategy
Lab:TestingandDebuggingtheASP.NETMVC4WebApplications
Aftercompletingthismodule,studentswillbeableto:
rununittestsanddebuggingtoolsagainstawebapplicationinVisualStudio2012andconfigurean
applicationfortroubleshooting.
Module7:StructuringASP.NETMVC4WebApplicationsThegoalofthismoduleistoenablestudentsto
structureawebapplicationinsuchawaythatuserscanrapidlylocatetheinformationtheyneed.Twoaspectsof
thedesignareemphasized:theURLspresentedinthebrowseraddressbarshouldbeunderstandableandcanbe
controlledbyaddingroutestotheASP.NETRoutingEngine,andthenavigationcontrols,suchasmenusand
breadcrumbtrails,shouldpresentthemostrelevantlinkstofrequentlyreadpages.SearchEngineOptimizationis
importantthroughoutthismodule.Lessons
AnalyzingInformationArchitecture
ConfiguringRoutes
CreatingaNavigationStructure
Lab:StructuringASP.NETMVC4WebApplications
Aftercompletingthismodule,studentswillbeableto:
developawebapplicationthatusestheASP.NETroutingenginetopresentfriendlyURLsandalogical
navigationhierarchytousers.
Module8:ApplyingStylestoASP.NETMVC4WebApplicationsThegoalofthismoduleistoexplorehow
studentscanimposeaconsistentlookandfeeltoanMVCapplicationandshareothercommoncomponents,
suchasheadersandfooters,betweenallViews.BesidesdescribingCSSstylesandtemplateviews,themodule
willdiscusshowtomigratealookandfeelcreatedbyawebdesignerintoanMVCapplication.Techniquesfor
adaptingthedisplayofasiteforsmallscreensandmobiledeviceswillalsobeintroduced.Lessons
UsingTemplateViews
ApplyingCSStoanMVCApplication
CreatinganAdaptiveUserInterface
Lab:ApplyingStylestoASP.NETMVC4WebApplications
Aftercompletingthismodule,studentswillbeableto:
implementaconsistentlookandfeel,includingcorporatebranding,acrossanentireMVCweb
application.
Module9:BuildingResponsivePagesinASP.NETMVC4WebApplicationsThegoalofthismoduleisto
describetothestudentshowpartialpageupdatesandcachingcanoptimizetheresponsivenessofaweb
application.StudentswillseehowtomakeuseofAJAXhelpersandpartialviewstoupdatesmallportionsofa
pageinsteadofrefreshingtheentirepage.Themodulealsocoversthedifferentcachesdeveloperscanuseto
storerenderedpagesanddiscusseshowtoconfigurecachingformaximumperformance.Lessons
UsingAJAXandPartialPageUpdates
ImplementingaCachingStrategy
Lab:BuildingResponsivePagesinASP.NETMVC4WebApplications
Aftercompletingthismodule,studentswillbeableto:
usepartialpageupdatesandcachingtoreducethenetworkbandwidthusedbyanapplicationand
accelerateresponsestouserrequests.
Module10:UsingJavaScriptandjQueryforResponsiveMVC4WebApplicationsThegoalofthismoduleisto
teachthestudentstechniquesthatruncodeonthebrowser.Thisapproachcanincreasetheresponsivenessofthe
applicationbecausearenderedpagecanrespondtoauseractionwithoutreloadingtheentirepagefromthe
server.StudentswilllearnaboutthejQueryscriptlibraryandhowtouseittocallwebservicesandupdateuser
interfacecomponents.Lessons
RenderingandRunningJavaScriptCode
UsingjQueryandjQueryUI
Lab:UsingJavaScriptandjQueryforResponsiveMVC4WebApplications
Aftercompletingthismodule,studentswillbeableto:
writeJavaScriptcodethatrunsontheclientsideandutilizesthejQueryscriptlibrarytooptimizethe
responsivenessofanMVCwebapplication.
Module11:ControllingAccesstoASP.NETMVC4WebApplicationsThegoalofthismoduletoensuregood
securityintermsofstrongauthenticationandauthorizationforaccess.Thelessonsdescribehowtoenable
anonymoususerstocreatetheirownuseraccountandgainprivilegedaccesstocontent.Lessons
ImplementingAuthenticationandAuthorization
AssigningRolesandMembership
Lab:ControllingAccesstoASP.NETMVC4WebApplications
Aftercompletingthismodule,studentswillbeableto:
implementacompletemembershipsysteminanMVC4webapplication.
Module12:BuildingaResilientASP.NETMVC4WebApplicationThegoalofthismoduleistoenablethe
studentstobuildapplicationsthatarestableandreliable.Suchapplicationsarenotvulnerabletocommon
hackingtechniquessuchascrosssitescriptingandalsostorestateinformationsuchasthecontentsofa
shoppingcartanduserpreferences.Thisstateinformationispreservedwhenserversorbrowsersrestart,
connectionsarelost,andotherconnectivityissuesoccur.Lessons
DevelopingSecureSites
StateManagement
Lab:BuildingaResilientASP.NETMVC4WebApplication
Aftercompletingthismodule,studentswillbeableto:
buildanMVCapplicationthatresistsmaliciousattacksandpersistsinformationaboutusersand
preferences.
Module13:UsingWindowsAzureWebServicesinASP.NETMVC4WebApplications
ThegoalofthismoduleistointroduceWindowsAzuretothestudentsandexplainwhyadeveloperwouldwrite
aWindowsAzureserviceinsteadofcodeinawebapplication.Studentswillalsoseehowtowritesuchaservice
andcallitfromawebapplicationorfromotherapplications,suchasamobiledeviceapp.
Lessons
IntroductiontoWindowsAzure
DesigningandWritingWindowsAzureServices
ConsumingWindowsAzureServicesinaWebApplication
Lab:UsingWindowsAzureWebServicesinASP.NETMVC4WebApplications
Aftercompletingthismodule,studentswillbeableto:
describehowtowriteaWindowsAzurewebserviceandcallitfromandMVCapplication.
Module14:ImplementingWebAPIsinASP.NETMVC4WebApplications
ThegoalofthemoduleistointroducetheconceptofaWebAPItostudentsandtodescribehowtomakean
applicationscorefunctionalitymorebroadlyavailableforintegrationintootherwebandmobileapplications.
StudentswilllearnaboutthenewWebAPIfeatureofMVC4andseehowtobuildaRESTfulWebAPIandcall
itfromotherapplications.
Lessons
DevelopingaWebAPI
CallingaWebAPIfromMobileandWebApplications
Lab:ImplementingWebAPIsinASP.NETMVC4WebApplications
Aftercompletingthismodule,studentswillbeableto:
describewhataWebAPIisandwhydevelopersmightaddaWebAPItoanapplication.
Module15:HandlingRequestsinASP.NETMVC4WebApplicationsThegoalofthismoduleistodescribe
howtowritecomponentsthatinterceptrequestsfrombrowsersbeforetheyarereceivedbyMVCControllers.
ThesecomponentsincludeHTTPModules,HTTPHandlers,andtheWebSocketsprotocol.Themodule
describesscenariosinwhichdevelopersusesuchcomponentsandshowshowtoaddthemtoanMVC
application.Lessons
UsingHTTPModulesandHTTPHandlers
UsingWebSockets
Lab:HandlingRequestsinASP.NETMVC4WebApplications
Aftercompletingthismodule,studentswillbeableto:
modifythewaybrowserrequestsarehandledbyanMVCapplication.
Module16:DeployingASP.NETMVC4WebApplicationsThegoalforthismoduleistoenablestudentsto
deployacompletedMVCapplicationtoawebserverorWindowsAzure.Themodulebeginsbydescribing
testing,staging,andproductiondeploymentsandthewebserverenvironmentsrequiredforeach.Italso
describestheadvantagesanddisadvantagesofusingWindowsAzuretohosttheapplication.Studentsalsosee
alltheavailabledeploymentoptionsinVisualStudio.Lessons
DeployingWebApplications
DeployingMVC4Applications
Lab:DeployingASP.NETMVC4WebApplications
Aftercompletingthismodule,studentswillbeableto:
describehowtopackageanddeployanASP.NETMVC4webapplicationfromadevelopment
computertoawebserverforstagingorproduction.