I have a GridTemplateColumn where I define a TextBox and a Button in the EditItemTemplate property. How is it possible to fire the onClick event of the button.
I have tried the following:
<asp:ImageButton ID="Button" runat="server" ImageUrl="~/Resources/key.png" OnClick="Button_Click" />
... but this doesn't work I always get the following compilation error "...does not contain a definition for 'Button_Click' and no extension
method ... (are
you missing a using directive or an assembly reference?)
I don't know what I made wrong - can anybody help me?