473,394 Members | 1,956 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,394 software developers and data experts.

ASP.NET: Repeater: Total no. of Records in Footer

Hi All,

I am using Repeater Control.

I want to display total no. of Records in the Footer template, at the
bottom.

What will be the data binding expression?

Thanks in advance
Sachin
Feb 21 '06 #1
2 1999
Well, you can do <%# Container.ItemIndex %>

or you could bind into ItemDataBound and set it in codebehind, where you'd
have access to the original data source.

Karl

--
http://www.openmymind.net/
http://www.fuelindustries.com/
"Sachin" <an********@microsoft.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi All,

I am using Repeater Control.

I want to display total no. of Records in the Footer template, at the
bottom.

What will be the data binding expression?

Thanks in advance
Sachin

Feb 21 '06 #2
S P
I tried using <%# Container.ItemIndex %>, it displays -1.

Regards
Sachin

"Karl Seguin [MVP]" wrote:
Well, you can do <%# Container.ItemIndex %>

or you could bind into ItemDataBound and set it in codebehind, where you'd
have access to the original data source.

Karl

--
http://www.openmymind.net/
http://www.fuelindustries.com/
"Sachin" <an********@microsoft.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi All,

I am using Repeater Control.

I want to display total no. of Records in the Footer template, at the
bottom.

What will be the data binding expression?

Thanks in advance
Sachin


Mar 5 '06 #3

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

Similar topics

7
by: SueB | last post by:
Greetings. I have a report based on the following query (hang in there ... it's quite long): SELECT Year(.) AS Yr, tblEvents.eventID, tblEvents.eventname, tblEvents.eventhost,...
0
by: Kevin Vogler | last post by:
I have a stored procedure that returns a select with a variable number of columns based on the data. By reading the number of columns returned, I construct a stringbuilder with the html tags for a...
8
by: Matthew Curiale | last post by:
I am creating an app that lists clients of a company for management of different attributes for that company. The first page is a listing of the companies currently in the database. I have my...
1
by: dhnriverside | last post by:
Hi I want to use an Asp:Repeater to create a list of items. I want the list to be 3 columns wide, and order like so... AA AD AG AB AE AH AC AF AI I'm not...
3
by: Arthur Dent | last post by:
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....
4
by: sck10 | last post by:
Hello, I have a repeater that is bound to a SQL Server table. I would like to place a summary in the footer for the item count and product cost. I have two fields. One for the product name...
1
by: Kim | last post by:
How can I display "No data found" in the repeater if there are no records found after selecting an item from a dropdown list. Another question is: Can repeater perform paging as in datagrid if...
0
by: shamirza | last post by:
· What is view state and use of it? The current property settings of an ASP.NET page and those of any ASP.NET server controls contained within the page. ASP.NET can detect when a form is requested...
0
by: ilamittal | last post by:
My problem is ,i have one repeater control.In that the data is binding at BtnGo click. In that if there are two same vehicle no but they service payments are different ,so after completing the data...
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: 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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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...

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.