Which markup segments should you include in Target 1, T…

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.
Select and Place:

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.
Select and Place:

Answer:

Explanation:
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 5

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


Muthukumar

Muthukumar

Target 2 will be :
ExternalOrder

Manu

Manu

Both “ExternalOrder” and “ExternalOrderController” are correct.

nope

nope

no they are not. you do not write Controller at the end.

spider

spider

Target 2 will be :
ExternalOrder
Correct!

PK

PK

string containing controller name cannot have “Controller” suffix. So “ExternalOrderController” does not work