单项选择题X 纠错
A.<%= Html.Action("ListEmployees", Model) %>
B.<%= Html.ActionLink("ListEmployees", "Department", "DepartmentController") %>
C.<% Html.RenderPartial("ListEmployees", Model); %>
D.<%= Html.DisplayForModel("ListEmployees") %>
你可能喜欢
单项选择题
A.Change the name of the Index.aspx file to Product.aspx.
B.Create a folder named Product inside the Views folder. Move Index.aspx to the Product folder.
C.Replace the @ Page directive in Index.aspx with the following value.
D.Modify the Index method by changing its signature to the following:public ActionResult Index(Product p)
单项选择题
A.Rename Score.ascx to LastScore.ascx.
B.Move Score.ascx from the Views/Shared/DisplayTemplates folder to theViews/Player/DisplayTemplates folder.
C.Add the following attribute to the LastScore property. [UIHint("Score")]
D.Add the following attribute to the LastScore property. [Display(Name="LastScore", ShortName="Score")]
多项选择题
A.Add the following attribute to the first Edit action. [AcceptVerbs(HttpVerbs.Head)]
B.Add the following attribute to the first Edit action. [HttpGet]
C.Add the following attribute to the second Edit action. [HttpPost]
D.Add the following attribute to the second Edit action. [HttpPut]
多项选择题
A.[Authorize(Users = "")]
B.[Authorize(Roles = "")]
C.[Authorize(Users = "*")]
D.[Authorize(Roles = "*")]
单项选择题
A.Add the ValidateAntiForgeryToken attribute to the Details action method.
B.Add the Bind attribute to the country parameter of the Details action method. Set the attribute’s Prefix property to Country.
C.Create a class that implements the IRouteConstraint interface. Configure the default route to use this class.
D.Create a class that implements the IRouteHandler interface. Configure the default route to use this class.
多项选择题
A.Add a DynamicDataManager control to the Web page.
B.Disable the auto-generated fields on GridView1. Add a DynamicField control for each field of the Product class.
C.Add the following code segment to the Application_Start method in the Global.asax.cs file.
D.Add the following code segment to the Page_Init method of the Web page.
单项选择题
A.Add a new Web page named Products.aspx to the Dynamic Data\PageTemplates folder of the Web site.
B.Add a new folder named Products to the Dynamic Data\CustomPages folder of the Web site. Add a new Web page named ListDetails.aspx to the Products folder.
C.Add a new Web user control named Products.ascx to the Dynamic Data\Filters folder of the Web site. In the code-behind file for the control, change the base class from UserControl to System.Web.DynamicData.Query.
D.Add a new Web user control named Products_ListDetails.ascx to the DynamicData\EntityTemplates folder of the Web.In the code-behind file for the control, change the base class from UserControl to System.Web.DynamicData.Entity.
多项选择题
A.Add the following attribute to the AddressType field. [XmlAttribute]
B.Add the following attribute to the Line2 field. [XmlElement(IsNullable=true)]
C.Add the following attribute to the ZipPostalCode field. [XmlAttribute("ZipCode")]
D.Add the following attribute to the ZipPostalCode field. [XmlElement("ZipCode")]
多项选择题
A.Apply the WebService attribute to the ProductService class.
B.Apply the ScriptService attribute to the ProductService class.
C.Apply the WebMethod attribute to the GetProducts method.
D.Apply the ScriptMethod attribute to the GetProducts method.
单项选择题
A.var secretPeople = (from p in allPeople from u in secretUsers where p.UserId == u select p).Distinct(); return allPeople.Except(secretPeople);
B.return from p in allPeople from u in secretUsers where p.UserId != u select p;
C.return (from p in allPeople from u in secretUsers where p.UserId != u select p).Distinct();
D.List