Which 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.
Which markup should you use?
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"}) %>

microsoft-exams

Leave a Reply

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


The reCAPTCHA verification period has expired. Please reload the page.