单项选择题
A.Html.ActionLink("Home", "Index", "Home")
B.Html.ActionLink("Home", "Index", "Home", New With {.area = ""}, Nothing)
C.Html.ActionLink("Home", "Index", "Home", New With {.area = "Blog"}, Nothing)
D.Html.ActionLink("Home", "Index", "Home", New With {.area = "Home"}, Nothing)
单项选择题 YouaredevelopinganASP.NETMVC2Webapplication.ApagemakesanAJAXrequestandexpectsalistofcompanynamesinthefollowingformat.["AdventureWorks","Contoso"]Youneedtowriteanactionmethodthatreturnstheresponseinthecorrectformat.Whichtypeshouldyoureturnfromtheactionmethod?()
单项选择题 YouareimplementinganASP.NETMVC2Webapplicationthatcontainsthefollowingclass.PublicClassDepartmentControllerInheritsControllerShareddepartmentsAsList(OfDepartment)=NewList(OfDepartment)FunctionIndex()AsActionResultReturnView(departments)EndFunctionFunctionDetails(ByValidAsInteger)AsActionResultReturnView(departments.Find(Function(x)x.ID=id))EndFunctionFunctionListEmployees(ByValdAsDepartment)AsActionResultDimemployeesAsList(OfEmployee)=GetEmployees(d)ReturnView(employees)EndFunctionEndClassYoucreateastronglytypedviewthatdisplaysdetailsforaDepartmentinstance.Youwanttheviewtoalsoincludealistingofdepartmentemployees.YouneedtowriteacodesegmentthatwillcalltheListEmployeesactionmethodandoutputtheresultsinplace.Whichcodesegmentshouldyouuse?()
单项选择题 YouareimplementinganASP.NETMVC2Webapplicationthatcontainsseveralfolders.TheViews/Shared/DisplayTemplatesfoldercontainsatemplatedhelpernamedScore.ascxthatperformscustomformattingofintegervalues.TheModelsfoldercontainsaclassnamedPlayerwiththefollowingdefinition.PublicClassPlayerPublicPropertyNameAsStringPublicPropertyLastScoreAsIntegerPublicPropertyHighScoreAsIntegerEndClassYouneedtoensurethatthecustomformattingisappliedtoLastScorevalueswhentheHtmlHelper.DisplayForModelmethodiscalledforanyviewintheapplicationthathasamodeloftypePlayer.Whatshouldyoudo?()