Which markup segments should you include in Target 1, Target 2 and Target 3 to complete the markup?

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.

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



Leave a Reply 4

Your email address will not be published. Required fields are marked *