您正在开发ASP.NET MVC 2 Web应用程序。该应用程序包含名为 HomeController
的控制器,其中有一个名为Index的操作。该应用程序还包含一个名为 博客的单独区域。博客区域内的视图必须包含将链接到 HomeController
的索引操作的ActionLink
。您需要确保博客区域中的ActionLink
链接到 HomeController
的索引操作。你应该使用哪个ActionLink
?mcts mvc问题
A. Html.ActionLink("Home", "Index", "Home")
B. Html.ActionLink("Home", "Index", "Home", new {area = ""}, null)
C. Html.ActionLink("Home", "Index", "Home", new {area = "Blog"}, null)
D. Html.ActionLink("Home", "Index", "Home", new {area = "Home"}, null)
StackOverflow不是为了帮助人们在他们的认证考试中作弊。通过逐字复制这个问题,您可能会违反版权法。 – StriplingWarrior