title: In ASP.Net, how can I open a link in a new window?
body: <p>I have a button which redirects the user to another page. Instead, I would like this button to open a new window that points to this location. Can anyone please help me to do this?</p>
  
  <p><strong>aspx:</strong></p>
  
  <pre><code>&lt;asp:ImageButton ID="img_url"
                   CommandName='&lt;%#Eval("url") %&gt;'
                   OnClick="img_url_Click"
                   runat="server"
                   ImageUrl="~/images/products_details.png"
                   /&gt;
  </code></pre>
  
  <p><strong>cs:</strong></p>
  
  <pre><code>protected void img_url_Click(object sender, ImageClickEventArgs e)
  {
      ImageButton img = sender as ImageButton;
      Response.Redirect(img.CommandName.ToString());
  }
  </code></pre>