2012-03-19 85 views

Respuesta

10

Especifique el atributo HTML 'objetivo' utilizando htmlAttributes parameter. En Razor:

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

en la sintaxis ASPX:

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

Proporcióneme la solución en ASP.NET MVC. – SRV

+0

Esto es lo mismo en la sintaxis de ASPX View: <% = Html.ActionLink ("Nueva ventana", "Índice", nulo, nuevo {target = "_blank"})%> – McGarnagle

0

No se pudo obtener las respuestas de aquí a trabajar. Tuve que usar

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

Esto funcionó para mí. Era solo el pequeño período tonto al comienzo del objetivo que faltaba.

Cuestiones relacionadas