J
Jim Mitchell
I have the following datagrid with two template columns. Can someone tell
he how I would know which "imgContacts1" was clicked and what the onclick
routine would look like in code behind?
In otherwords, how do you trap the onclick event for in image control in a
datagrid template?
Thanks in advance...
Jim
<Columns>
<asp:TemplateColumn HeaderText="Options1">
<HeaderTemplate>
Options
</HeaderTemplate>
<ItemTemplate>
<asp:ImageButton id="imgContacts1" runat="server"
ImageUrl="images/find.gif"></asp:ImageButton>
<asp:ImageButton id="imgContacts2" runat="server"
ImageUrl="images/folder.gif"></asp:ImageButton>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Options2">
<ItemTemplate>
<asp:ImageButton id="ImageButton3" runat="server"
ImageUrl="images/info.gif"></asp:ImageButton>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
he how I would know which "imgContacts1" was clicked and what the onclick
routine would look like in code behind?
In otherwords, how do you trap the onclick event for in image control in a
datagrid template?
Thanks in advance...
Jim
<Columns>
<asp:TemplateColumn HeaderText="Options1">
<HeaderTemplate>
Options
</HeaderTemplate>
<ItemTemplate>
<asp:ImageButton id="imgContacts1" runat="server"
ImageUrl="images/find.gif"></asp:ImageButton>
<asp:ImageButton id="imgContacts2" runat="server"
ImageUrl="images/folder.gif"></asp:ImageButton>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Options2">
<ItemTemplate>
<asp:ImageButton id="ImageButton3" runat="server"
ImageUrl="images/info.gif"></asp:ImageButton>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>