title: How to display an image in a new window
body: <p>I have a follow-on question to <a href="https://stackoverflow.com/questions/4097438/how-to-display-an-image-based-on-selectedvalue-in-a-gridview">How to display an image based on SelectedValue in a GridView?</a></p>
  
  <p>What I would really like to do is have a ViewImage button on my GridView control so that when that is clicked, the image is displayed on a new page in a new browser window. How would I do that? I'm thinking perhaps do I need to create a </p>
  
  <pre><code>&lt;asp:ButtonField&gt;
  </code></pre>
  
  <p>How do I handle the click and how do I get the image to diplay on a new form in a new web browser window?</p>
  
  <p>Thanks very much for looking.</p>