我想让我的链接在新标签页中打开(必须使用razor格式):
<a href="@Url.Action("RunReport", "Performance", new { reportView = Model.ReportView.ToString() }, new { target = "_blank" })" type="submit" id="runReport" class="button Secondary">@Reports.RunReport</a>
不过这并没有起作用。有人知道如何做吗?
Url.Action
里面呢?直接把它放到<a>
标签里就好了。 - Joel Etherton