Asp.net MVC的actionlink到Areas里action

<li>@Html.ActionLink("Home", "Index", "Home", new { area = ""}, null)</li>
<li>@Html.ActionLink("Admin", "Index", "Home", new { area = "Admin" }, null)</li>
<li>@Html.ActionLink("About", "About", "Home", new { area = ""}, null)</li>
 
参数里加上区域名.

你可能感兴趣的:(asp.net)