473,480 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

ASP.NET Repeater Display Record Count

17 New Member
I am using a repeater to display a list of properties that I am pulling from my database. I am very new to ASP.NET so this is still a bit foreign to me.

The repeater is working great for my listings. However, I want to display the actual number of records in the dataset that is returned in my HeaderTemplate. I am sure it is very easy to do, but again I am just learning.

EXAMPLE:

X = number of records

X Properties Found

Property 1
Property 2
Property 3
...

Hope this makes sense. Any help would be appreciated.
May 1 '07 #1
2 3417
rpeacock
17 New Member
Any ideas on this one? Need more information?
May 4 '07 #2
mina10a
17 New Member
Any ideas on this one? Need more information?
simply count the number of record in dataset table.
syntax for counting records in dataset is

dim cnt as integer=datasetobject.tables("tablealiasname").row s.count
this syntax count the no.of records in dataset
May 5 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1584
by: Mark | last post by:
I am trying to use a Pagable Repeater with checkboxes in ASP.Net, I cannot seem to associate the checkbox with a particular database record so I lose the checked state from page-to-page. Below is...
3
4362
by: francois | last post by:
Hi, I have a little problem I am using a stored procedure to retrieve my date. What I want to achieve is to be able to "skip" some row from the resultset i retrieve back from the stored...
0
834
by: Peter Johansen | last post by:
I have a question regarding the most effective way to implement key breaks in a repeater control. Consider the following data in a SQL table : Cat. | Products ----------------- Fruits |...
1
3178
by: darrel | last post by:
I'm trying to whip up a fancy repeater control that will put records into a two-column table for me. This is how I envision it working: itemtemplate if record count = odd then write out the...
1
2227
by: Jack | last post by:
Hi, I have a repeater in which all rows are editable together (there is one Save button at the top of the page). When the page loads with the repeater populated, I change the value in one of...
1
1182
by: Shapper | last post by:
Hello, I am trying to get some data from a XML file into a repeater: MyXML.ReadXml("http://www.mydomain.com/myXmlFile.xml") MyRepeater.DataSource = MyXML MyRepeater.DataBind() My XML file...
4
5244
by: darrel | last post by:
I have a repeater that I'd like to apply some logic to, namly highlighting the top few items in the repeater. To do this, I need to determine the record count. I've tried this: <% dim...
4
7394
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
1262
by: rhungund | last post by:
Hi all...i'm using the repeater control to display some records. The first record however needs to be displayed differently - it's shown as a featured item. The remainding records will be...
0
7041
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
6908
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...
1
6737
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...
0
6921
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5336
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,...
0
2995
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1300
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 ...
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
179
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...

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.