Linked Questions

Popular Questions

How to Open a new tab or windows from controller MVC ASP

Asked by At

I need to process something on the server from DetailsController from my DetailsView and then I need to return to the DetailsView, but I need display a new windows with the proceced info in new view (DetailsPrint) too, so, any idea how I can make this?

Note: is mandatory go to server, so

@Html.ActionLink("linkText", "Action", new {controller="ControllerName"}, new {target="_blank"})


<button onclick="location.href='@Url.Action("Edit", "Home",new { Model.ID })';return false;">Detail</button>

    <input type="button" title="Delete" value="D" onclick="location.href='@Url.Action("Edit", "Home", new { id = item.ID })'" />

dont work for me

Related Questions