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)%
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")%>
相关考题:
publicclassX{publicstaticvoidmain(String[]args){try{badMethod();System.out.print(A”);}catch(RuntimeExceptionex){System.out.print(B”);}catch(Exceptionex1){System.out.print(C”);}finally{System.out.print(D”);}System.out.print(E”);}publicstaticvoidbadMethod(){thrownewRuntimeException();}}Whatistheresult?()A.BDB.BCDC.BDED.BCDEE.ABCDEF.Compilationfails.
在SQL*PLUS环境中,若想通过执行PL/SQL代码来显示指定的字符串,应该首先做哪项设置() A.set echo onB.set output onC.set serveroutput onD.set dbms_output onE.set server_output on