DRAG DROP
You are developing an ASP.NET MVC application in Visual Studio.
The application contains an area that is defined as shown in the following graphic.
The ActionLink method must invoke the GetOrders() action in ExternalOrderController.
You need to configure the parameters of the ActionLink method.
You have the following markup.
Which markup segments should you include in Target 1, Target 2 and Target 3 to complete the
markup? To answer, drag the appropriate markup segment to the correct targets. Each markup
segment may be used once, more than once, or not at all. You may need to drag the split bar
between panes or scroll to view content.
Answer: See the explanation
Explanation:
Target 1: “GetOrders”,
Target 2: “ExternalOrderController”,
Target 3: External,Target 1: the action is getOrders
Target 2: the controller is ExternalOrderController
Target 3: The area is External
LinkExtensions.ActionLink Method (HtmlHelper, String, String, String, RouteValueDictionary,
IDictionary<String, Object>)
Use:Html.ActionLink(“Text”, “ActionName”, “ControllerName”, new { Area = “AreaName” }, null)
How to specify an area name in an action link?
http://stackoverflow.com/questions/2036305/how‐to‐specify‐an‐area‐name‐in‐an‐action‐link
Should be
Target 1: “GetOrders”,
Target 2: “ExternalOrder”,
Target 3: External,
http://www.codeguru.com/csharp/.net/net_asp/mvc/article.php/c20227/Using-Areas-in-ASPNET-MVC-Application.htm
I agree
target 2. controllerName.
https://msdn.microsoft.com/en-us/library/system.web.mvc.html.linkextensions.actionlink(v=vs.118).aspx#M:System.Web.Mvc.Html.LinkExtensions.ActionLink%28System.Web.Mvc.HtmlHelper,System.String,System.String,System.Web.Routing.RouteValueDictionary,System.Collections.Generic.IDictionary{System.String,System.Object}%29
I dont think you should write actually “Controller” in the name.
Target 2 should be: ExternalOrder