New window opens on click of actionLink

后端 未结 6 1405
时光说笑
时光说笑 2021-01-05 20:18

I have a requirment to invoke a controller method from the view page. On click of the link below the method should be invoked.

@Html.ActionLink(item.InvoiceN         


        
6条回答
  •  庸人自扰
    2021-01-05 21:11

    Try This

    <%=Html.ActionLink(a.Title, "View", "Report", new { Id = a.id.ToString() }, new { target="_blank" })%> 
    

提交回复
热议问题