.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 關注
- 696 瀏覽
添加回答
舉報
0/150
提交
取消