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

newbee question on nesting Repeater in DataList

I have working code allowing me to nest repeaters inside datalists
using relations and child rows but this does not allow me to acheive
my goal.

What I want to be able to do is display small tables (approx 5-10 rows
by 3-4 columns) of data using repeaters nested in a datalist.

Each row in the datalist source will act as a pointer and filter to
the child table for the repeater source.

eg Datalist Source:
UserID ItemID
1 1
1 2
2 1
3 2

Repeater Source for ItemID 1:
UserID Item Description
1 A A Desc
1 B B Desc
2 C C Desc

Repeater Source for ItemID 2:
UserID Item Description
1 D D Desc
3 E E Desc
3 F F Desc
When the user with userID = 1 requests the page the datalist will
display similar to ...

|---------------------|
|A A Desc |D D Desc |
|B B Desc | |
|---------------------|

I cannot use multiple relations on a single table source for the
repeater.
This is for a portal where the users will be creating a personal
page where they can pick and choose summaries of data.

eg top 10 X by Customer or top 5 highest sales lines.
The crucial thing is that the UserID acts as a filter so that the top
X by customers would be taken only from the userid's teritiory.

The closest analogy I can think of would be in pubs allowing authors
to choose a summary of sales by title next to commision by month

I can response.write out the contents of the SQLDataReader as a table
manually in the onItemChanged event of the datalist, but I really want
to take advantage of the repeater for alternate row styles etc.

I am using SQL 2K asp.net 1.1 (vb only please)
Thanks in advance
Nov 18 '05 #1
0 1160

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

Similar topics

3
by: Fredrik Rodin | last post by:
All, I'm looking for a way of generating a grouping in a repeater (or other control). Instaed of describing everything here, just look at this link and you can see how I did it in classic asp...
3
by: Sparky Arbuckle | last post by:
I'm sure this question has been posted many times, but I have yet to find an answer for it. I am trying to nest a repeater (or datalist) inside of a datagrid and am trying to figure out how to nest...
1
by: Hans Merkl | last post by:
Hi, I must be missing something here. In a DataList and DataGrid I can use the property DataKeys to identify the selected element and get to its values. But I can't find a way to do the same in...
3
by: GD | last post by:
I'm using a DataList and a Repeater (nested in the DataList) to display a list of "Chapters" and "Documents" within the Chapters. <asp:DataList ID="dlChapter" Runat="server" RepeatColumns="2"...
7
by: Doug Parker | last post by:
I'm trying to use the repeater control to create a column-like row of data, I've searched the net and it doesn't appear to be that easy. Use this page for reference: ...
2
by: Steve | last post by:
I am having issues adding a new row in my repeater when my repeater's table cells reach a certain number. what i'm doing is adding a predetermined number of color cells from the database and...
0
by: warren_rapson | last post by:
Hi all, I am a newbie to this awesome framework - i love it. My situation: - I have a master page with a menu on it and a ContenPlaceHolder containing a DataList - The menu is dynamic and is...
2
by: Paulo | last post by:
What is DetailsView, FormView, DataList, Repeater components? Any differences? VS 2005 asp.net C#
12
by: =?Utf-8?B?Qi4gQ2hlcm5pY2s=?= | last post by:
I'm doing a web app in VB/Dot Net 2.0. I'm probably a bit rusty and I have no experience using the repeater control. I have a user control I've created with multiple properties. I've created a...
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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
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: 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...

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.