R
Ryan Taylor
Hello.
I have a repeater control for listing some items out. I have in my header
template an ImageButton control. How can I wire that onclick event of the
ImageButton control. I only have the one button because I will be performing
a batch delete on items that have been checked by the user.
I have looked everywhere, but all the examples show wiring events for
multiple buttons in the ItemCommand of the repeater control. Must I still do
this, would it even work for a single button in the header?
The header code follows.
<headertemplate>
<table width="100%" border="0" cellspacing="1" cellpadding="3"
class="list">
<tr class="list_title">
<td width="20" align="center"><a href="News.aspx?callname=new"><img
src="images/icons/icon_record_new.gif" width="19" height="20" alt="New
Record" border="0"></a></td>
<td colspan="2" width="100%">News List</td>
<td width="20" align="center"><asp:imagebutton id="btnDelete"
imageurl="images/icons/icon_trash.gif" width="19" height="20"
runat="server"></asp:ImageButton></td>
</tr>
<tr bgcolor="FFFFFF">
<td colspan="5"></td>
</tr>
<tr class="list_subtitle">
<td align="center"></td>
<td> Date</td>
<td width="1%"> Enabled </td>
<td align="center"></td>
</tr>
<tr bgcolor="FFFFFF">
<td colspan="5"></td>
</tr>
</HeaderTemplate>
I have a repeater control for listing some items out. I have in my header
template an ImageButton control. How can I wire that onclick event of the
ImageButton control. I only have the one button because I will be performing
a batch delete on items that have been checked by the user.
I have looked everywhere, but all the examples show wiring events for
multiple buttons in the ItemCommand of the repeater control. Must I still do
this, would it even work for a single button in the header?
The header code follows.
<headertemplate>
<table width="100%" border="0" cellspacing="1" cellpadding="3"
class="list">
<tr class="list_title">
<td width="20" align="center"><a href="News.aspx?callname=new"><img
src="images/icons/icon_record_new.gif" width="19" height="20" alt="New
Record" border="0"></a></td>
<td colspan="2" width="100%">News List</td>
<td width="20" align="center"><asp:imagebutton id="btnDelete"
imageurl="images/icons/icon_trash.gif" width="19" height="20"
runat="server"></asp:ImageButton></td>
</tr>
<tr bgcolor="FFFFFF">
<td colspan="5"></td>
</tr>
<tr class="list_subtitle">
<td align="center"></td>
<td> Date</td>
<td width="1%"> Enabled </td>
<td align="center"></td>
</tr>
<tr bgcolor="FFFFFF">
<td colspan="5"></td>
</tr>
</HeaderTemplate>