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?
<asp:GridView ID="GrdBooksRated" runat="server" AutoGenerateColumns = "False"
Font-Names = "Arial" >
<Columns>
<asp:BoundField DataField ="title" HeaderText ="ID" />
<asp:TemplateField>
<ItemTemplate>
<asp:ImageButton ID="ImageButton1" ImageUrl ='<%# Eval("pictureUrl")%>' runat="server" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>