多做题,通过考试没问题!

微软认证考试

睦霖题库>其他计算机考试>微软认证考试

You are implementing an ASP.NET MVC 2 Web application. A controller contains the following code. The first Edit action displays the user whose details are to be edited, and the second Edit action is called when the Save button on the editing form is clicked to update the user details. An exception is thrown at run time stating that the request for action Edit is ambiguous. You need to correct this error and ensure that the controller functions as expected.What are two possible ways to achieve this goal?()

  • 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]
正确答案:B,C
答案解析:
进入题库查看解析

微信扫一扫手机做题