title: Using a button to open a link in a new tab/window in ASP.NET
body: <p>I’m trying to use a button click to open a page in a new tab/window.  I’ve looked at solutions similar to <a href="https://stackoverflow.com/questions/6248702/redirecting-new-tab-on-button-click-response-redirect-in-asp-net-c-sharp">this</a>, but the answers given there are either to use a link or have it open in the same window.  I need to use a button because it needs to generate the link based on criteria data entered in the form (string manipulation).  This button is not submitting the form though; it’s just validating some of the data on an external site.  I need this in a different window or tab so they can go back and forth between my form and the validation site.  This is basically my current <code>Button_Click</code> event:</p>
  
  <pre><code>var Address = AddressTextbox.Text.Trim();
  Address = Address.Replace(' ', '+');
  var Url = "http://www.example.com/query?text=" + Address + "&amp;param1=foo&amp;param2=bar";
  Response.Redirect(Url);
  </code></pre>
  
  <p>This works except that <code>Response.Redirect(Url)</code> only opens in the same window, not a new one.  </p>