如何通过单击MVC的HTML操作链接,打开一个新的弹出窗口?

问题描述:

我有一个视图页面,其中有一个HTML ActionLink的。现在就点击该动作环节,我想在不关闭previous之一打开一个新的弹出窗口。在这个新的弹出窗口,我想表明我现有的视图页面。请提供给我一个更好的解决方案。

I've a view page in which there's an HTML ActionLink. Now on click of that action link, i want to open a new popup window without closing the previous one. In this new popup window i want to show my existing view page. please provide me a better solution.

使用指定的HTML目标属性的htmlAttributes$c$c>参数。在剃刀:

Specify the HTML 'target' attribute using the htmlAttributes parameter. In Razor:

@Html.ActionLink("New Window", "Index", null, new { target= "_blank" })

在ASPX语法:

<%= Html.ActionLink("New Window", "Index", null, new { target= "_blank" }) %>