多项选择题
A.Add the following method to the CompanyController class. Function Info() As ActionResult Return View() End Function
B.Add the following method to the CompanyController class. Function Company_Info() As ActionResult Return View() End Function
C.Right-click the Views folder, and select View from the Add submenu to create the view for the action.
D.Right-click inside the action method in the CompanyController class, and select Add View to create a view for the action
单项选择题 YouaredevelopinganASP.NETMVC2Webapplication.TheapplicationcontainsacontrollernamedHomeController,whichhasanactionnamedIndex.TheapplicationalsocontainsaseparateareanamedBlog.AviewwithintheBlogareamustcontainanActionLinkthatwilllinktotheIndexactionoftheHomeController.YouneedtoensurethattheActionLinkintheBlogarealinkstotheIndexactionoftheHomeController.WhichActionLinkshouldyouuse?()
单项选择题 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?()