473,378 Members | 1,527 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Repeater footertemplate shows on TOP

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>
Nov 19 '05 #1
3 3664
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

"Arthur Dent" <hi*********************@yahoo.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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>

Nov 19 '05 #2
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)
"Arthur Dent" <hi*********************@yahoo.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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>

Nov 19 '05 #3
Ah, yes, the fact of it not being in a tr would do it.
thanks...


"Arthur Dent" <hi*********************@yahoo.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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>

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Tommy | last post by:
I have been working on getting nested repeaters to work for several days. When I add a repeater inside my item template i cannot see it in my code and can't set the datasource for it, etc, thus...
0
by: Viktor Popov | last post by:
Hi, I'm trying to do the following: I use a repeater control in ASP.NET/C# because I would like to show the content of one DataSet which is filled from SELECT QUERY. In DataSource I have the...
1
by: Viktor Popov | last post by:
Hi, I'm trying to do the following: I use a repeater control in ASP.NET/C# because I would like to show the content of one DataSet which is filled from SELECT QUERY. In DataSource I have the...
8
by: I am Sam | last post by:
Hi everyone, This problem is making me old. I don't want to get any older. I have a multi-nested repeater control as follows: <asp:Repeater ID="clubRep1" Runat="server">...
1
by: fredda054 | last post by:
Hi everybody ! With help from some nice people here I'm getting close to solve my problem with dbnull values in a repeater. I got it pretty much done, I just ned to fix some syntax. I get a...
2
by: Eniac | last post by:
*argh* ... *pull hairs* I've recently started developing from ASP to ASP.NET The switch was fairly smooth since i had done some VB.net before ... then came...FORMS! :) I find it astounding...
1
by: Jeff | last post by:
Hey asp.net 2.0 I have a repeater control in my webpage (you see my code below). In this control's ItemDataBound event I set the ImageUrl of a Image object. My problem is that when I run this...
4
by: Brad Baker | last post by:
I'm going a little crazy :) I'm trying to bind a repeater control to a dataset on page load using the following code: if (Request.QueryString != null) { string customerid = Request.QueryString;...
5
by: Peter Larsen [CPH] | last post by:
Hi, The following sample shows a LinkButton in the HeaderTemplate of a Repeater control. The problem is that i'm not able to access the linkbutton in code (in the cs file) as long as the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.