adding code to imagebutton in a grid view
<p>Hi there
I have a gridview that displays data that I retrieved from a database along with an imageButton Field.
How can I get to the eventhandler of the imageButton so that I can add code to redirect the Image to a different we page when I click on it?</p>

<pre><code>&lt;asp:GridView ID="GrdBooksRated" runat="server" AutoGenerateColumns = "False" 
        Font-Names = "Arial" &gt; 
        &lt;Columns&gt; 
            &lt;asp:BoundField DataField ="title" HeaderText ="ID" /&gt; 

            &lt;asp:TemplateField&gt; 
                &lt;ItemTemplate&gt; 
                    &lt;asp:ImageButton ID="ImageButton1" ImageUrl ='&lt;%# Eval("pictureUrl")%&gt;' runat="server" /&gt; 
                &lt;/ItemTemplate&gt;  
            &lt;/asp:TemplateField&gt;  
        &lt;/Columns&gt;  
    &lt;/asp:GridView&gt;
</code></pre>

<p>Kind regards
A</p>
