G
Guest
Dear all,
I gave a datagrid object wich has a template column define as follow :
<asp:TemplateColumn HeaderText="Evt">
<ItemTemplate>
<asp:ImageButton id="ImageButton2" ImageAlign=Middle runat="server"
ImageUrl="event.gif" CommandName="ShowEvent" CommandArgument
='<%#DataBinder.Eval(Container,"DataItem.ID")%>' >
</asp:ImageButton>
</ItemTemplate>
</asp:TemplateColumn>
When I click on my imagebutton I would like to trig the Command event of the
image button ?
How can I do that because phisycally the imagebutton is not seen in code as
it belongs to template
Or may be it is not working with it ?
Thnaks for your help
regards
serge
I gave a datagrid object wich has a template column define as follow :
<asp:TemplateColumn HeaderText="Evt">
<ItemTemplate>
<asp:ImageButton id="ImageButton2" ImageAlign=Middle runat="server"
ImageUrl="event.gif" CommandName="ShowEvent" CommandArgument
='<%#DataBinder.Eval(Container,"DataItem.ID")%>' >
</asp:ImageButton>
</ItemTemplate>
</asp:TemplateColumn>
When I click on my imagebutton I would like to trig the Command event of the
image button ?
How can I do that because phisycally the imagebutton is not seen in code as
it belongs to template
Or may be it is not working with it ?
Thnaks for your help
regards
serge