搜题
用户您好, 请在下方输入框内搜索其它题目:
搜题
题目内容 (请给出正确答案)
提问人:网友 发布时间:
【单选题】

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 &#8

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

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

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

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

更多“You&#8194;are&#8194;implementing&#8194;an&#8194;ASP.NET&#8194;MVC&#8194;2&#8194;Web&#8194;application&#8194;that&#8194;contains&#8194;the&#8194;following&#8194;class.&#8194;&#8194;Public&#8194;Class&#8194;DepartmentControllerInherits&#8194;Controller&#8194;&#8194;&#8194;Shared&#8194;departments&#8194;As&#8194;List(Of&#8194;Department)&#8194;=&#8194;&#8194;New&#8194;List(Of&#8194;Department)&#8194;&#8194;&#8194;Function&#8194;Index()&#8194;As&#8194;ActionResultReturn&#8194;View(departments)End&#8194;Function&#8194;&#8194;&#8194;Function&#8194;Details(ByVal&#8194;id&#8194;As&#8194;Integer)&#8194;As&#8194;ActionResultReturn&#8194;View(departments.Find(Function(x)&#8194;x.ID&#8194;=&#8194;id))End&#8194;Function&#8194;&#8194;&#8194;Function&#8194;ListEmployees(ByVal&#8194;d&#8194;As&#8194;Department)&#8194;As&#8194;ActionResultDim&#8194;employees&#8194;As&#8194;List(Of&#8194;Employee)&#8194;=&#8194;GetEmployees(d)Return&#8194;View&#8194;(employees)End&#8194;FunctionEnd&#8194;Class&#8194;&#8”相关的问题
客服
TOP

请使用微信扫码支付

订单号:
遇到问题请联系在线客服