title: Open Link in New Tab in ASP.NET
body: <p>I'm trying to use a Button to open a link in a new tab in ASP.NET. I'm trying the following but it isn't working:</p>
  
  <pre><code>&lt;asp:Button ID="ReportButton" runat="server" CssClass="button" Font-Size="XX-Large" ForeColor="White" Text="Report" OnClick="ReportButton_Click" OnClientClick="form1.target='_blank';" /&gt; 
  </code></pre>
  
  <p>In the code, <code>ReportButton_Click</code> is defined as follows:</p>
  
  <pre><code>protected void SkidPackReportButton_Click(object sender, EventArgs e)
  {
      GoToPage(LocationSkidPackReportPage);
  }
  </code></pre>
  
  <p>and <code>GoToPage</code> is defined as follows:</p>
  
  <pre><code>bool GoToPage(string page)
  {
      try
      {
          Response.Redirect(page);
          return true;
      }
      catch (Exception)
      {
          StatusLabel.Text = "There was an error finding the page.";
          return false;
      }
  }
  </code></pre>