.net mvc 使用html.actionlink 时,怎么实现target="_blank"?
3 回答
有只小跳蛙
TA贡献1824条经验 获得超8个赞
Html.ActionLink("linkText","actionName",routeValues,htmlAttributes)
htmlAttribute可以设置<a>标签的属性,
如 Html.ActionLink("detail","Detail",new{id=1},new{ target="_blank"})
会生成 <a href="Products/Detail/1" target="_blank">detail</a>
九州编程
TA贡献1785条经验 获得超4个赞
<%:Html.ActionLink("通讯录", "call", "callAction", new { classes = "customer", method = "query", nextPage = "customer.aspx" }, new { target = "right" }) %>
- 3 回答
- 0 关注
- 659 浏览
添加回答
举报
0/150
提交
取消