我有以下文件夾結構的mvc操作鏈接重定向到視圖文件夾中的文件夾
->People
-->Views
--->Reports
--->index.cshtml
---->PhoneCalls
----->Report.cshtml
-->Controlers
--->ReportsControler.cs
如何從index.cshtml導航使用@html.ActionLink
幫手Report.cshtml
我已經試過
@Html.ActionLink("Report", "PhoneCalls/Report", null, new { target = "__blank" });
與失敗。
ActionLinks不鏈接到視圖,它們鏈接到控制器操作。什麼控制器操作返回視圖「PhoneCalls/Report」? – Brandon
已更新有問題的文件夾結構以包含控制器文件夾,並且控制器操作是ReportController.cs中的Report –