title: New window opens on click of actionLink
body: <p>I have a requirment to invoke a controller method from the view page. On click of the link below the method should be invoked.</p>
  
  <pre><code>@Html.ActionLink(item.InvoiceNumber, "SendPdfStatement", "Invoice", 
                   new { item.InvoiceNumber }, new { target = "_blank" })
  </code></pre>
  
  <p>the method signature is as: </p>
  
  <pre><code>public void SendPdfStatement(string InvoiceNumber)
      {
  
          InvoiceNumber = InvoiceNumber.Trim();
  
          ObjectParameter[] parameters = new ObjectParameter[1];
          parameters[0] = new ObjectParameter("InvoiceNumber", InvoiceNumber);
  
          List&lt;Models.Statement&gt; list = new List&lt;Models.Statement&gt;();
          list = _db.ExecuteFunction&lt;Models.Statement&gt;("uspInvoiceStatement", parameters).ToList&lt;Models.Statement&gt;();
  
          var statementResult = _db.ExecuteFunction&lt;Models.Statement&gt;("uspInvoiceStatement", parameters);
          Models.Statement statement = statementResult.SingleOrDefault();
  
          pdfStatementController.WriteInTemplate(statement);                                 
  
     }
  </code></pre>
  
  <p>now the problem is when i click on the link, a blank window opens. I know it is something with <code>new { target = "_blank" }</code>. If i pass <code>null</code> in its place my page with link becomes blank. What shall i pass here so the my page remains as it is and no new blank window also appears.</p>