Repeater footertemplate shows on TOP

A

Arthur Dent

Hello all...

Im seeing something strange. I have a repeater control which has a
footertemplate.
The content in the footertemplate however is showing up at the TOP of the
repeater contents.
Shouldn't a footer be at the BOTTOM?

I thought maybe it was because i did not have a headertemplate defined, so i
added one of those, but that didnt help either.
The footer content still show up at the top.

My repeater code is at the bottom of this post.

Thanks in advance,
Arthur Dent.

==============================================

<asp:repeater id="rptPrds" runat="server">
<itemtemplate>
<tr>
<td class="nmlPrdLst" onmouseover="this.className='hvrPrdLst'"
onmouseout="this.className='nmlPrdLst'">
<table width="100%">
<tr>
<td valign="top" style="padding-right: 25px;" rowspan="2">
<asp:hyperlink id="lnkProduct" runat="server" navigateurl='<%#
AppRoot & "catalog.aspx?cid=" & DataBinder.Eval(Container.DataItem,
"ROWID")%>' borderstyle="None">
<asp:image id="imgPrd" runat="server" width="75px" imageurl='<%#
ImageRoot & "catalog/" &
DataBinder.Eval(Container.DataItem,"IMGS")%>'></asp:image>
</asp:hyperlink>
</td>
<td width="100%" valign="top" align="left">
<asp:label id="lblPrdName" runat="server" font-bold="True" text='<%#
DataBinder.Eval(Container.DataItem, "NAME")%>'></asp:label><br>
&nbsp;<br>
<asp:label id="lblMfgpn" runat="server" font-italic="True" text='<%#
"Our Part No. <b>" & DataBinder.Eval(Container.DataItem, "MFGPN") &
"</b>"%>'></asp:label><br>
&nbsp;<br>
<asp:label id="lblPrdDiscount" runat="server" forecolor="Red"
font-italic="True" font-bold="True" text='<%#
DataBinder.Eval(Container.DataItem, "DISCOUNTPCT") & " OFF!"%>'></asp:label>
</td>
</tr>
</table>
</td>
</tr>
</itemtemplate>
<footertemplate>
<asp:label id="lblIncludesPrices" runat="server" font-italic="true"
font-size="7pt">All prices include sale discounts where
applicable.</asp:label>
</footertemplate>
</asp:repeater>
 
B

Bruce Barker

your footer isn't included inside a <tr><td>, so it not part of the table,
so the browser render it seperately.

-- bruce (sqlwork.com)
 
E

Eliyahu Goldin

Arthur,

Does the repeater show any items? The footer is supposed to be straight
after items.

Your itemtemplate is a <tr>. Where is the <table> tage the item <tr>s belong
to? And your footer is not a <tr>. This is not a correct html construction.

Eliyahu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top