niusouti.com

YouareimplementinganASP.NETMVC2Webapplicationthatcontainsthefollowingclass.YoucreateastronglytypedviewthatdisplaysdetailsforaDepartmentinstance.Youwanttheviewtoalsoincludealistingofdepartmentemployees.YouneedtowriteacodesegmentthatwillcalltheListEmployees

题目

YouareimplementinganASP.NETMVC2Webapplicationthatcontainsthefollowingclass.YoucreateastronglytypedviewthatdisplaysdetailsforaDepartmentinstance.Youwanttheviewtoalsoincludealistingofdepartmentemployees.YouneedtowriteacodesegmentthatwillcalltheListEmployeesactionmethodandoutputtheresultsinplace.Whichcodesegmentshouldyouuse?()

A.<%=Html.Action("ListEmployees",Model)%>

B.<%=Html.ActionLink("ListEmployees","Department","DepartmentController")%>

C.<%Html.RenderPartial("ListEmployees",Model);%>

D.<%=Html.DisplayForModel("ListEmployees")%>


相似考题