problem with headertemplate asp:repeater
<p>Hi guys can somebody please asist..my code is as follows:</p>

<p>The image buttons click events does not get fired but as soon as i take it out of the header template the event gets fired..please help me resolve this issue!</p>

<p>Thank you!</p>

<pre><code>&lt;%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ResultsControl.ascx.cs"
Inherits="POS.Web.Campaign.Controls.ResultsControl" %&gt;
</code></pre>

<p>
    </p>

<pre><code>    &lt;div id="divResultsMain"&gt;
        &lt;br /&gt;
        &lt;asp:Repeater ID="repeaterCampaignList" runat="server" &gt;
            &lt;HeaderTemplate&gt;
                &lt;table cellspacing="0" cellpadding="0"&gt;
                    &lt;tr class="repeaterAlternatingItem"&gt;
                        &lt;th&gt;
                            &lt;asp:ImageButton ID="campNameAsc" runat="server" ImageUrl="~/images/up-arrow.jpg"
                                Height="20px" Width="20" OnClick="campNameAsc_Click" /&gt;
                            &lt;asp:ImageButton ID="campNameDesc" runat="server" ImageUrl="~/images/down-arrow.jpg"
                                Height="20px" Width="20" OnClick="campNameDesc_Click" CausesValidation="False" /&gt;Campaign
                            Name
                        &lt;/th&gt;
                        &lt;th&gt;
                            &lt;asp:ImageButton ID="campIDAsc" runat="server" ImageUrl="~/images/up-arrow.jpg" Height="20px"
                                Width="20" OnClick="campIDAsc_Click" /&gt;
                            &lt;asp:ImageButton ID="campIDDesc" runat="server" ImageUrl="~/images/down-arrow.jpg"
                                Height="20px" Width="20" OnClick="campIDDesc_Click" /&gt;Campaign ID
                        &lt;/th&gt;
                        &lt;th&gt;
                            &lt;asp:ImageButton ID="campTypeAsc" runat="server" ImageUrl="~/images/up-arrow.jpg"
                                Height="20px" Width="20px" OnClick="campTypeAsc_Click" /&gt;
                            &lt;asp:ImageButton ID="campTypeDesc" runat="server" ImageUrl="~/images/down-arrow.jpg"
                                Height="20px" Width="20" OnClick="campTypeDesc_Click" /&gt;
                            Campaign Type
                        &lt;/th&gt;
                        &lt;th style="width:43px"&gt;
                         &lt;asp:ImageButton ID="VIPAsc" runat="server" ImageUrl="~/images/up-arrow.jpg"
                                Height="20px" Width="20" OnClick="campNameAsc_Click" ImageAlign="NotSet" /&gt;
                            &lt;asp:ImageButton ID="VIPDesc" runat="server" ImageUrl="~/images/down-arrow.jpg"
                                Height="20px" Width="20" OnClick="campNameDesc_Click" CausesValidation="False" /&gt;
                            VIP
                        &lt;/th&gt;
                        &lt;th&gt;
                         &lt;asp:ImageButton ID="countryAsc" runat="server" ImageUrl="~/images/up-arrow.jpg"
                                Height="20px" Width="20" OnClick="campNameAsc_Click"/&gt;
                            &lt;asp:ImageButton ID="countryDesc" runat="server" ImageUrl="~/images/down-arrow.jpg"
                                Height="20px" Width="20" OnClick="campNameDesc_Click" CausesValidation="False" /&gt;
                            Country
                        &lt;/th&gt;
                        &lt;th&gt;
                         &lt;asp:ImageButton ID="brandAsc" runat="server" ImageUrl="~/images/up-arrow.jpg"
                                Height="20px" Width="20" OnClick="campNameAsc_Click" /&gt;
                            &lt;asp:ImageButton ID="brandDesc" runat="server" ImageUrl="~/images/down-arrow.jpg"
                                Height="20px" Width="20" OnClick="campNameDesc_Click" CausesValidation="False" /&gt;
                            Brand
                        &lt;/th&gt;
                        &lt;th&gt;
                         &lt;asp:ImageButton ID="activeAsc" runat="server" ImageUrl="~/images/up-arrow.jpg"
                                Height="20px" Width="20" OnClick="activeAsc_Click" /&gt;
                            &lt;asp:ImageButton ID="activeDesc" runat="server" ImageUrl="~/images/down-arrow.jpg"
                                Height="20px" Width="20" OnClick="activeDesc_Click" CausesValidation="False" /&gt;
                            Active
                        &lt;/th&gt;
                        &lt;th&gt;
                            &lt;asp:ImageButton ID="createdByAsc" runat="server" ImageUrl="~/images/up-arrow.jpg"
                                Height="20px" Width="20px" OnClick="createdByAsc_Click" /&gt;
                            &lt;asp:ImageButton ID="createdByDesc" runat="server" ImageUrl="~/images/down-arrow.jpg"
                                Height="20px" Width="20" OnClick="createdByDesc_Click" /&gt;
                            Created By
                        &lt;/th&gt;
                        &lt;th&gt;
                            &lt;asp:ImageButton ID="campStartAsc" runat="server" ImageUrl="~/images/up-arrow.jpg"
                                Height="20px" Width="20px" OnClick="campStartAsc_Click" /&gt;
                            &lt;asp:ImageButton ID="campStartDesc" runat="server" ImageUrl="~/images/down-arrow.jpg"
                                Height="20px" Width="20" OnClick="campStartDesc_Click" /&gt;
                            Campaign Start Date
                        &lt;/th&gt;
                        &lt;th&gt;
                            &lt;asp:ImageButton ID="campEndAsc" runat="server" ImageUrl="~/images/up-arrow.jpg"
                                Height="20px" Width="20px" OnClick="campEndAsc_Click" /&gt;
                            &lt;asp:ImageButton ID="campEndDesc" runat="server" ImageUrl="~/images/down-arrow.jpg"
                                Height="20px" Width="20" OnClick="campEndDesc_Click" /&gt;
                            Campaign End Date
                        &lt;/th&gt;
                    &lt;/tr&gt;
            &lt;/HeaderTemplate&gt;
            &lt;ItemTemplate&gt;
                &lt;tr class="repeaterItem"&gt;
                    &lt;td&gt;
                        &lt;%#DataBinder.Eval(Container.DataItem, "StoreDescription")%&gt;
                    &lt;/td&gt;
                    &lt;td&gt;
                        &lt;%#DataBinder.Eval(Container.DataItem, "ID") %&gt;
                    &lt;/td&gt;
                    &lt;td&gt;
                        &lt;%#DataBinder.Eval(Container.DataItem, "CampaignType")%&gt;
                    &lt;/td&gt;
                    &lt;td align="center"&gt;
                        &lt;asp:CheckBox runat="server" Enabled="false" Checked='&lt;%#DataBinder.Eval(Container.DataItem, "IsVIP")%&gt;' /&gt;
                    &lt;/td&gt;
                    &lt;td&gt;
                        &lt;%#DataBinder.Eval(Container.DataItem, "Country")%&gt;
                    &lt;/td&gt;
                    &lt;td&gt;
                        &lt;%#DataBinder.Eval(Container.DataItem, "Brand")%&gt;
                    &lt;/td&gt;
                    &lt;td align="center"&gt;
                        &lt;asp:CheckBox ID="CheckBox1" Enabled="false" runat="server" Checked='&lt;%#DataBinder.Eval(Container.DataItem, "IsActive")%&gt;' /&gt;
                    &lt;/td&gt;
                    &lt;td&gt;
                        &lt;%#DataBinder.Eval(Container.DataItem, "Owner")%&gt;
                    &lt;/td&gt;
                    &lt;td&gt;
                        &lt;%#DataBinder.Eval(Container.DataItem, "CampaignStartDate", "{0 : dd MMMM yyyy}")%&gt;
                    &lt;/td&gt;
                    &lt;td&gt;
                        &lt;%#DataBinder.Eval(Container.DataItem, "CampaignEndDate", "{0 : dd MMMM yyyy}")%&gt;
                    &lt;/td&gt;
                &lt;/tr&gt;
            &lt;/ItemTemplate&gt;
            &lt;AlternatingItemTemplate&gt;
                &lt;tr class="repeaterAlternatingItem"&gt;
                    &lt;td&gt;
                        &lt;%#DataBinder.Eval(Container.DataItem, "StoreDescription")%&gt;
                    &lt;/td&gt;
                    &lt;td&gt;
                        &lt;%#DataBinder.Eval(Container.DataItem, "ID") %&gt;
                    &lt;/td&gt;
                    &lt;td&gt;
                        &lt;%#DataBinder.Eval(Container.DataItem, "CampaignType")%&gt;
                    &lt;/td&gt;
                    &lt;td align="center"&gt;
                        &lt;asp:CheckBox Enabled="false" runat="server" Checked='&lt;%#DataBinder.Eval(Container.DataItem, "IsVIP")%&gt;' /&gt;
                    &lt;/td&gt;
                    &lt;td&gt;
                        &lt;%#DataBinder.Eval(Container.DataItem, "Country")%&gt;
                    &lt;/td&gt;
                    &lt;td&gt;
                        &lt;%#DataBinder.Eval(Container.DataItem, "Brand")%&gt;
                    &lt;/td&gt;
                    &lt;td align="center"&gt;
                        &lt;asp:CheckBox ID="CheckBox1" Enabled="false" runat="server" Checked='&lt;%#DataBinder.Eval(Container.DataItem, "IsActive")%&gt;' /&gt;
                    &lt;/td&gt;
                    &lt;td&gt;
                        &lt;%#DataBinder.Eval(Container.DataItem, "Owner")%&gt;
                    &lt;/td&gt;
                    &lt;td&gt;
                        &lt;%#DataBinder.Eval(Container.DataItem, "CampaignStartDate","{0 : dd MMMM yyyy}")%&gt;
                    &lt;/td&gt;
                    &lt;td&gt;
                        &lt;%#DataBinder.Eval(Container.DataItem, "CampaignEndDate", "{0 : dd MMMM yyyy}")%&gt;
                    &lt;/td&gt;
                &lt;/tr&gt;
            &lt;/AlternatingItemTemplate&gt;
            &lt;FooterTemplate&gt;
                &lt;/table&gt;
            &lt;/FooterTemplate&gt;
        &lt;/asp:Repeater&gt;
    &lt;/div&gt;
    &lt;p&gt;
        &amp;nbsp;&lt;p&gt;
            &lt;asp:Label ID="lblCurrentPage" runat="server"&gt;&lt;/asp:Label&gt;
        &lt;/p&gt;
        &lt;asp:LinkButton ID="prev" runat="server" onclick="prev_Click"&gt;Prev&lt;/asp:LinkButton&gt;
        &lt;asp:LinkButton ID="next" runat="server" onclick="next_Click"&gt;Next&lt;/asp:LinkButton&gt;
        &lt;p&gt;
        &lt;/p&gt;
    &lt;/p&gt;
&lt;/ContentTemplate&gt;
</code></pre>

<p></p>
