PrepAway - Latest Free Exam Questions & Answers

Wich markup should you use?

You are developing an ASP.NET MVC2 application. You add an area named Admin to the application.
Admin contains a controller class name to MainController. You create a view named Index outside
the Admin area. You need to add a link in the Index view that will call the Default action. Wich
markup should you use?

PrepAway - Latest Free Exam Questions & Answers

A.
<%= Html.ActionLink(“Admin”,”Default”, “Main”, new {area=”admin”},null )%>

B.
<%= Html.RouteLink(“Admin”,”Default”, new {area=”admin”},”Main” )%>

C.
<%= Html.RenderAction(“Admin”,”Default”, new {area=”admin”}); %>

D.
<%= Html.Action(“Admin”,”Default”,new {area=”admin”}) %>


Leave a Reply