473,795 Members | 2,391 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1175

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

Similar topics

3
2407
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.0 including source code and SQL-script (SQL Server 2000). http://www.rodin.se/gruppering.asp You'll see the result with grouped products. Is there a way of doing the
3
5887
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 "sub-columns" inside of it. For example: Column1 ArtistName - "DiscTitle"
1
1431
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 a Repeater. Can anybody give me an idea how to this in a Repeater or point me to some sample code? Thanks
3
1424
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" RepeatDirection="Vertical" OnItemDataBound="dlChapter_OnItemDataBound"> <ItemTemplate> <table> <tr> <td colspan="2"><%# DataBinder.Eval(Container.DataItem, "ChapterName")%></td>
7
2080
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: http://www.westmarkadvisors.com/photo_gallery.php (i'm converting this to .net) I'm using the repeater to list all of the thumnails below, but i don't know how to insert a </tr><tr> break in the code. AlternatingItemTemplate seems to affect every other row, and as you can
2
18381
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 bringing them into a repeater that is located already inside a table cell which cannot exceed a certain width. for example: ASP: ------------------------------------
0
1321
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 made using a Repeater with a Hyperlink that gets its text and URL from an SQLDataSource. - Previous to this menu, i had another menu (a TreeView) that used an
2
11845
by: Paulo | last post by:
What is DetailsView, FormView, DataList, Repeater components? Any differences? VS 2005 asp.net C#
12
2182
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 test page and I've managed to bind the usercontrol to a repeater and display some data in the following fashion: <asp:Repeater ID="Repeater1" runat="server" DataSourceID="ObjectDataSource1"> <ItemTemplate > <uc1:AUserControl runat="server"...
0
9519
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10438
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...
1
10164
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
10001
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9042
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
7540
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
5437
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3727
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
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.