试题详情
- 单项选择题You are implementing an ASP.NET MVC 2 Web application that contains the following class. Public Class DepartmentControllerInherits Controller Shared departments As List(Of Department) = New List(Of Department) Function Index() As ActionResultReturn View(departments)End Function Function Details(ByVal id As Integer) As ActionResultReturn View(departments.Find(Function(x) x.ID = id))End Function Function ListEmployees(ByVal d As Department) As ActionResultDim employees As List(Of Employee) = GetEmployees(d)Return View (employees)End FunctionEnd Class You create a strongly typed view that displays details for a Department instance. You want the view to also include a listing of department employees. You need to write a code segment that will call the ListEmployees action method and output the results in place. Which code segment should you use?()
A、<%= Html.Action("ListEmployees", Model) %>
B、<%= Html.ActionLink("ListEmployees", "Department", "DepartmentController") %>
C、<% Html.RenderPartial("ListEmployees", Model) %>
D、<%= Html.DisplayForModel("ListEmployees") %>
- A
关注下方微信公众号,在线模考后查看
热门试题
- You remotely&e
- You create a Window
- YouaredevelopingaWin
- Your company&e
- You develop a Windo
- You are writing an
- Your network consis
- You have a WINS ser
- 您需要辨认潜在的安全威胁。哪些以下安全漏
- You work as the app
- You work
- Your network&e
- Your network&e
- You work
- You have
- You are developing
- You have
- You work
- 您在计算机系统上执行 Win
- You are the network