【发布时间】:2012-06-06 18:54:54
【问题描述】:
我试图让我的链接在新标签页中打开(它必须是剃刀格式):
<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>标签本身即可。