title: Opening Multiple Links In ASP.NET MVC?
body: <p>I have an application that takes some user input from a view, the reports the user wants, and creates a parameter string from it in the controller, and I need to open up multiple report urls after the query string is created but not sure how:</p>
  
  <p><strong>View snippet:</strong></p>
  
  <pre><code>@Html.EditorFor(model =&gt; model.Id)
  @Html.CheckBoxFor(model =&gt; model.report1)  Report1
  @Html.CheckBoxFor(model =&gt; model.report2) Report2
  @Html.CheckBoxFor(model =&gt; model.report3) Report3
  
  &lt;input type="submit" value="Index" /&gt;
  </code></pre>
  
  <p><strong>controller snippet</strong></p>
  
  <pre><code>[HttpPost]
  public ActionResult Index(ViewModel model) {
  
  string parameters="&amp;id="+model";
  
  if(model.report1==true) 
  {
      string report1="http://&lt;urlhere&gt;"+parameters;
  }
  //CONTINUE for the other two reports as well
  }
  </code></pre>
  
  <p>I need to open the reports in multiple tabs.  I have researched it extensively and it seems like you can't open multiple tabs from the controller, so I'm at a loss.  I considered putting the urls in a list, passing them into a View, and using JavaScript to open them on the page load, but I honestly am not sure how to do that in Javascript and MVC.</p>