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
try passing _self instead of _blank or alternatively passing null instead of , new { target = "_blank" }
_self
_blank
null
new { target = "_blank" }
i.e. @Html.ActionLink(item.InvoiceNumber, "SendPdfStatement", "Invoice", new { item.InvoiceNumber }, null )
@Html.ActionLink(item.InvoiceNumber, "SendPdfStatement", "Invoice", new { item.InvoiceNumber }, null )
or leave off the new { target = "_blank" } all together