.net mvc 使用html.actionlink 时,怎么实现target="_blank"?
3 回答
郎朗坤
TA贡献1921条经验 获得超9个赞
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贡献1827条经验 获得超9个赞
<%:Html.ActionLink("通讯录", "call", "callAction", new { classes = "customer", method = "query", nextPage = "customer.aspx" }, new { target = "right" }) %>
- 3 回答
- 0 关注
- 263 浏览
添加回答
举报
0/150
提交
取消