A
Adam Knight
Hi all,
I have a datagrid like so:
<asp:datagrid id="dgContractors"
OnItemCommand="dgContractor_ItemCommand"
Runat="server"
Width="920">
Shortened for brevity..
It contains a template collumn like so:
<asp:TemplateColumn HeaderText="Superintendent">
<ItemTemplate>
<asp:LinkButton ID="test"
CommandName="ShowSupervisorDetails"
CommandArgument='<%#
Container.DataItem("cntr_mgt_supervisor_id")%>'
Runat="server">Test </asp:LinkButton>
<asp:ImageButton
ImageUrl="images/icons/info.gif"
CommandArgument='<%#
Container.DataItem("cntr_mgt_supervisor_id")%>'
CommandName="ShowSupervisorDetails"
ID="ibtnSuperintendentInfo"
Runat="server"/>
</ItemTemplate>
<FooterTemplate></FooterTemplate>
</asp:TemplateColumn>
The LinkButton successfully fires the ItemCommand Event.
The ImageButton doesn't???
Any ideas?
Cheers,
Adam
I have a datagrid like so:
<asp:datagrid id="dgContractors"
OnItemCommand="dgContractor_ItemCommand"
Runat="server"
Width="920">
Shortened for brevity..
It contains a template collumn like so:
<asp:TemplateColumn HeaderText="Superintendent">
<ItemTemplate>
<asp:LinkButton ID="test"
CommandName="ShowSupervisorDetails"
CommandArgument='<%#
Container.DataItem("cntr_mgt_supervisor_id")%>'
Runat="server">Test </asp:LinkButton>
<asp:ImageButton
ImageUrl="images/icons/info.gif"
CommandArgument='<%#
Container.DataItem("cntr_mgt_supervisor_id")%>'
CommandName="ShowSupervisorDetails"
ID="ibtnSuperintendentInfo"
Runat="server"/>
</ItemTemplate>
<FooterTemplate></FooterTemplate>
</asp:TemplateColumn>
The LinkButton successfully fires the ItemCommand Event.
The ImageButton doesn't???
Any ideas?
Cheers,
Adam