473,805 Members | 2,026 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="nmlPrdLs t" onmouseover="th is.className='h vrPrdLst'"
onmouseout="thi s.className='nm lPrdLst'">
<table width="100%">
<tr>
<td valign="top" style="padding-right: 25px;" rowspan="2">
<asp:hyperlin k id="lnkProduct " runat="server" navigateurl='<% #
AppRoot & "catalog.aspx?c id=" & DataBinder.Eval (Container.Data Item,
"ROWID")%>' borderstyle="No ne">
<asp:image id="imgPrd" runat="server" width="75px" imageurl='<%#
ImageRoot & "catalog/" &
DataBinder.Eval (Container.Data Item,"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.Data Item, "NAME")%>'> </asp:label><br>
&nbsp;<br>
<asp:label id="lblMfgpn" runat="server" font-italic="True" text='<%#
"Our Part No. <b>" & DataBinder.Eval (Container.Data Item, "MFGPN") &
"</b>"%>'></asp:label><br>
&nbsp;<br>
<asp:label id="lblPrdDisco unt" runat="server" forecolor="Red"
font-italic="True" font-bold="True" text='<%#
DataBinder.Eval (Container.Data Item, "DISCOUNTPC T") & " OFF!"%>'></asp:label>
</td>
</tr>
</table>
</td>
</tr>
</itemtemplate>
<footertemplate >
<asp:label id="lblIncludes Prices" 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 3682
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******** ********@tk2msf tngp13.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="nmlPrdLs t" onmouseover="th is.className='h vrPrdLst'"
onmouseout="thi s.className='nm lPrdLst'">
<table width="100%">
<tr>
<td valign="top" style="padding-right: 25px;" rowspan="2">
<asp:hyperlin k id="lnkProduct " runat="server" navigateurl='<% #
AppRoot & "catalog.aspx?c id=" & DataBinder.Eval (Container.Data Item,
"ROWID")%>' borderstyle="No ne">
<asp:image id="imgPrd" runat="server" width="75px" imageurl='<%#
ImageRoot & "catalog/" &
DataBinder.Eval (Container.Data Item,"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.Data Item, "NAME")%>'> </asp:label><br>
&nbsp;<br>
<asp:label id="lblMfgpn" runat="server" font-italic="True" text='<%# "Our Part No. <b>" & DataBinder.Eval (Container.Data Item, "MFGPN") &
"</b>"%>'></asp:label><br>
&nbsp;<br>
<asp:label id="lblPrdDisco unt" runat="server" forecolor="Red"
font-italic="True" font-bold="True" text='<%#
DataBinder.Eval (Container.Data Item, "DISCOUNTPC T") & " OFF!"%>'></asp:label> </td>
</tr>
</table>
</td>
</tr>
</itemtemplate>
<footertemplate >
<asp:label id="lblIncludes Prices" 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******** ********@tk2msf tngp13.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="nmlPrdLs t" onmouseover="th is.className='h vrPrdLst'"
onmouseout="thi s.className='nm lPrdLst'">
<table width="100%">
<tr>
<td valign="top" style="padding-right: 25px;" rowspan="2">
<asp:hyperlin k id="lnkProduct " runat="server" navigateurl='<% #
AppRoot & "catalog.aspx?c id=" & DataBinder.Eval (Container.Data Item,
"ROWID")%>' borderstyle="No ne">
<asp:image id="imgPrd" runat="server" width="75px" imageurl='<%#
ImageRoot & "catalog/" &
DataBinder.Eval (Container.Data Item,"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.Data Item, "NAME")%>'> </asp:label><br>
&nbsp;<br>
<asp:label id="lblMfgpn" runat="server" font-italic="True" text='<%#
"Our Part No. <b>" & DataBinder.Eval (Container.Data Item, "MFGPN") &
"</b>"%>'></asp:label><br>
&nbsp;<br>
<asp:label id="lblPrdDisco unt" runat="server" forecolor="Red"
font-italic="True" font-bold="True" text='<%#
DataBinder.Eval (Container.Data Item, "DISCOUNTPC T") & "
OFF!"%>'></asp:label>
</td>
</tr>
</table>
</td>
</tr>
</itemtemplate>
<footertemplate >
<asp:label id="lblIncludes Prices" 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******** ********@tk2msf tngp13.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="nmlPrdLs t" onmouseover="th is.className='h vrPrdLst'"
onmouseout="thi s.className='nm lPrdLst'">
<table width="100%">
<tr>
<td valign="top" style="padding-right: 25px;" rowspan="2">
<asp:hyperlin k id="lnkProduct " runat="server" navigateurl='<% #
AppRoot & "catalog.aspx?c id=" & DataBinder.Eval (Container.Data Item,
"ROWID")%>' borderstyle="No ne">
<asp:image id="imgPrd" runat="server" width="75px" imageurl='<%#
ImageRoot & "catalog/" &
DataBinder.Eval (Container.Data Item,"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.Data Item, "NAME")%>'> </asp:label><br>
&nbsp;<br>
<asp:label id="lblMfgpn" runat="server" font-italic="True" text='<%#
"Our Part No. <b>" & DataBinder.Eval (Container.Data Item, "MFGPN") &
"</b>"%>'></asp:label><br>
&nbsp;<br>
<asp:label id="lblPrdDisco unt" runat="server" forecolor="Red"
font-italic="True" font-bold="True" text='<%#
DataBinder.Eval (Container.Data Item, "DISCOUNTPC T") & "
OFF!"%>'></asp:label>
</td>
</tr>
</table>
</td>
</tr>
</itemtemplate>
<footertemplate >
<asp:label id="lblIncludes Prices" 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
2713
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 it's useless. Anytime i try to reference rptChild I get an error saying that it's not an object. If I set a break point I see that it's <nothing>. Here is a sample of code that shows the problem. I would REALLY appreciate any help on getting...
0
1191
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 detailed information for all advertisements which met the criteria of the QUERY. With the Repeater I show only one part from this information. In other words if I have in DataSet 12 columns, I show 6. What I would like to do is to make the first...
1
1706
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 detailed information for all advertisements which met the criteria of the QUERY. With the Repeater I show only one part from this information. In other words if I have in DataSet 12 columns, I show 6. What I would like to do is to make the first...
8
2919
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"> <HeaderTemplate><table> </HeaderTemplate> <ItemTemplate>
1
2064
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 parse error on this code because it's not well formed. Can someone please take a look at it and try to find what I'm doing wrong...I've been staring at it for so long now I can't tell up from down. I know it has to be a "'" or a '"' somewhere...
2
2290
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 at how difficult it has become to control a form, something that was so dead easy in ASP.
1
1272
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 webpage it shows only 1 image... -the repeater displays 2 rows, but it's only the first row that displays the image...
4
4926
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; //open connection SqlConnection m_conn = new SqlConnection("Server=server; Database=database; UId=username; Pwd=password");
5
13943
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 linkbutton stays in the repeater control - see the following line: testLink.CommandArgument = "just testing"; or testLink.Text = "Some new text";
0
9716
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10604
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10356
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10361
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9179
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7644
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5676
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4316
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3006
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.