title: how to use image button to open the url in another window
body: <p>Hi I know how to acheive this in hyperlink by setting target = _blank , how can i do this using image button control , below is my code:</p>
  
  <pre><code>&lt;asp:ImageButton OnClick="test_Click" ImageUrl="/images/contactUs/directionbtn.png" ID="test" runat="server" ValidationGroup="group2" /&gt;
  
               &lt;asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
              ControlToValidate="txtPostcode1" ErrorMessage="Postcode is required"  ValidationGroup="group2"&gt;&lt;/asp:RequiredFieldValidator&gt;
              &lt;br /&gt;
  </code></pre>
  
  <p>Code behind:</p>
  
  <pre><code>    protected void test_Click(object sender, ImageClickEventArgs e)
  {
  
      Response.Redirect(String.Format("http://maps.google.co.uk/maps?saddr={0}&amp;daddr=&amp;daddr=Wigan+WN6+0HS,+United+Kingdom&amp;iwloc=1&amp;dq=Tangent+Design", txtPostcode1.Text));
  
  
  
  }
  </code></pre>
  
  <p>Any help or advice will be highly appreciated</p>